diff options
author | Martin Lefebvre <dadexter@gmail.com> | 2010-05-11 19:45:27 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 19:45:27 +0200 |
commit | a14312dcf48e6742227563cf9dc7af0d7da742b8 (patch) | |
tree | 53ce8cbb9a0418840eeff4c10e4f3dbcd1e4be34 /libraries/sqlite/sqlite.SlackBuild | |
parent | baff76123853450479b1c65d721af7ddf5aecb98 (diff) |
libraries/sqlite: Updated for version 3.5.7
Diffstat (limited to 'libraries/sqlite/sqlite.SlackBuild')
-rw-r--r-- | libraries/sqlite/sqlite.SlackBuild | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/libraries/sqlite/sqlite.SlackBuild b/libraries/sqlite/sqlite.SlackBuild index a879f4c545256..837b0063b9a1f 100644 --- a/libraries/sqlite/sqlite.SlackBuild +++ b/libraries/sqlite/sqlite.SlackBuild @@ -24,16 +24,12 @@ # Modified by the SlackBuilds.org project -if [ "$(id -u)" != "0" ]; then - echo "This script must be run as root!" - exit 1 -fi - PRGNAM=sqlite -VERSION=3.3.14 +VERSION=3.5.7 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -45,14 +41,20 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root.root . -chmod -R u+rw,go+r-w,a-s . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -60,14 +62,13 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - --enable-threadsafe \ - || exit 1 + --enable-threadsafe -make || exit 1 -make install DESTDIR=$PKG || exit 1 +make +make install DESTDIR=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) @@ -78,9 +79,10 @@ gzip -9 $PKG/usr/man/man1/sqlite3.1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README VERSION doc/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/CVS find $PKG/usr/doc -type f -exec chmod 0644 {} \; -# Add a COPYING file. Content taken from: http://www.sqlite.org/copyright.html +# Add a COPYING file -- http://www.sqlite.org/copyright.html cat $CWD/COPYING > $PKG/usr/doc/$PRGNAM-$VERSION/COPYING mkdir -p $PKG/install |