diff options
Diffstat (limited to 'development/leveldb/leveldb.SlackBuild')
-rw-r--r-- | development/leveldb/leveldb.SlackBuild | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/development/leveldb/leveldb.SlackBuild b/development/leveldb/leveldb.SlackBuild index c1ab404b67..2e607d996f 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 |