development/leveldb: Updated for version 1.9.0.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Mário Antunes 2013-02-10 10:25:52 -05:00 committed by dsomero
parent 58f15a4eab
commit b9a6fc8fde
4 changed files with 21 additions and 17 deletions

View file

@ -7,3 +7,5 @@ Still, LevelDB is not a SQL database. Like other NoSQL and Dbm stores,
it does not have a relational data model, it does not support SQL it does not have a relational data model, it does not support SQL
queries, and it has no support for indexes. Applications use LevelDB as queries, and it has no support for indexes. Applications use LevelDB as
a library, as it does not provide a server or command-line interface. a library, as it does not provide a server or command-line interface.
Optional dependency: snappy

View file

@ -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) # Written by Mário Antunes (mario.antunes@av.it.pt)
PRGNAM=leveldb PRGNAM=leveldb
VERSION=${VERSION:-1.7.0} VERSION=${VERSION:-1.9.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -16,7 +16,6 @@ if [ -z "$ARCH" ]; then
esac esac
fi fi
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
@ -36,6 +35,9 @@ else
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
# Build with snappy
SNAPPY=${SNAPPY:-no}
set -e set -e
rm -rf $PKG 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 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -exec chmod 644 {} \;
./build_detect_platform conf . echo "echo \"PLATFORM_CFLAGS+=$SLKCFLAGS\" >> build_config.mk" >> build_detect_platform
CFLAGS="$SLKCFLAGS" \ echo "echo \"PLATFORM_CXXFLAGS+=$SLKCFLAGS\" >> build_config.mk" >> build_detect_platform
CXXFLAGS="$SLKCFLAGS" \
make make
mkdir -p $PKG/usr/include mkdir -p $PKG/usr/include/leveldb
cp -a include/* $PKG/usr/include install include/leveldb/*.h $PKG/usr/include/leveldb
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX mkdir -p $PKG/usr/lib$LIBDIRSUFFIX
cp -a *.so* $PKG/usr/lib$LIBDIRSUFFIX cp -a libleveldb.so* $PKG/usr/lib$LIBDIRSUFFIX
cp -a *.a $PKG/usr/lib$LIBDIRSUFFIX
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \ 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 grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="leveldb" PRGNAM="leveldb"
VERSION="1.7.0" VERSION="1.9.0"
HOMEPAGE="http://code.google.com/p/leveldb/" HOMEPAGE="http://code.google.com/p/leveldb/"
DOWNLOAD="http://leveldb.googlecode.com/files/leveldb-1.7.0.tar.gz" DOWNLOAD="http://leveldb.googlecode.com/files/leveldb-1.9.0.tar.gz"
MD5SUM="5c3c6cfbb16a21cdbea0db656aa32fec" MD5SUM="12f11385cb58ae0de66d4bc2cc7f8194"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""