aboutsummaryrefslogtreecommitdiff
path: root/development/leveldb/leveldb.SlackBuild
diff options
context:
space:
mode:
authorMário Antunes <mariolpantunes@gmail.com>2013-02-10 10:25:52 -0500
committerdsomero <xgizzmo@slackbuilds.org>2013-02-10 10:25:52 -0500
commitb9a6fc8fde189a92e4d3fb77f485d7732677d681 (patch)
tree9ae14ca8192750361083cb1160e58eecebddcbab /development/leveldb/leveldb.SlackBuild
parent58f15a4eab5f0f40c94092be086f1711ffa59f63 (diff)
development/leveldb: Updated for version 1.9.0.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/leveldb/leveldb.SlackBuild')
-rw-r--r--development/leveldb/leveldb.SlackBuild26
1 files changed, 14 insertions, 12 deletions
diff --git a/development/leveldb/leveldb.SlackBuild b/development/leveldb/leveldb.SlackBuild
index c1ab404b67719..2e607d996f658 100644
--- a/development/leveldb/leveldb.SlackBuild
+++ b/development/leveldb/leveldb.SlackBuild
@@ -1,10 +1,10 @@
-#!/bin/sh -e
+#!/bin/sh
#
-# Slackware build script for Zeromq-jzmq
+# Slackware build script for LevelDB
# Written by Mário Antunes (mario.antunes@av.it.pt)
PRGNAM=leveldb
-VERSION=${VERSION:-1.7.0}
+VERSION=${VERSION:-1.9.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -16,7 +16,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -36,6 +35,9 @@ else
LIBDIRSUFFIX=""
fi
+# Build with snappy
+SNAPPY=${SNAPPY:-no}
+
set -e
rm -rf $PKG
@@ -51,23 +53,23 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-./build_detect_platform conf .
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+echo "echo \"PLATFORM_CFLAGS+=$SLKCFLAGS\" >> build_config.mk" >> build_detect_platform
+echo "echo \"PLATFORM_CXXFLAGS+=$SLKCFLAGS\" >> build_config.mk" >> build_detect_platform
make
-mkdir -p $PKG/usr/include
-cp -a include/* $PKG/usr/include
+mkdir -p $PKG/usr/include/leveldb
+install include/leveldb/*.h $PKG/usr/include/leveldb
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX
-cp -a *.so* $PKG/usr/lib$LIBDIRSUFFIX
-cp -a *.a $PKG/usr/lib$LIBDIRSUFFIX
+cp -a libleveldb.so* $PKG/usr/lib$LIBDIRSUFFIX
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install