mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/leveldb: Updated for version 1.9.0.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
58f15a4eab
commit
b9a6fc8fde
4 changed files with 21 additions and 17 deletions
|
@ -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
|
||||
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.
|
||||
|
||||
Optional dependency: snappy
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="leveldb"
|
||||
VERSION="1.7.0"
|
||||
VERSION="1.9.0"
|
||||
HOMEPAGE="http://code.google.com/p/leveldb/"
|
||||
DOWNLOAD="http://leveldb.googlecode.com/files/leveldb-1.7.0.tar.gz"
|
||||
MD5SUM="5c3c6cfbb16a21cdbea0db656aa32fec"
|
||||
DOWNLOAD="http://leveldb.googlecode.com/files/leveldb-1.9.0.tar.gz"
|
||||
MD5SUM="12f11385cb58ae0de66d4bc2cc7f8194"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue