diff options
Diffstat (limited to 'source/ap/sqlite/sqlite.SlackBuild')
-rwxr-xr-x | source/ap/sqlite/sqlite.SlackBuild | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/source/ap/sqlite/sqlite.SlackBuild b/source/ap/sqlite/sqlite.SlackBuild index c2754bc26..61f259b04 100755 --- a/source/ap/sqlite/sqlite.SlackBuild +++ b/source/ap/sqlite/sqlite.SlackBuild @@ -24,7 +24,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PKGNAM=sqlite -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +VERSION=${VERSION:-$(echo $PKGNAM-src-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +OLD_STYLE=$(echo $VERSION | tr 0 . | cut -f 1-3 -d .) BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j7 "} @@ -57,12 +58,15 @@ else LIBDIRSUFFIX="" fi +# Enable some features: +SLKCFLAGS="$SLKCFLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_STAT2=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_SECURE_DELETE=1" + rm -rf $PKG mkdir -p $TMP $PKG cd $TMP rm -rf $PKGNAM-$VERSION -tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1 -cd $PKGNAM-$VERSION || exit 1 +tar xvf $CWD/$PKGNAM-src-$VERSION.tar.?z* || exit 1 +cd $PKGNAM-src-$VERSION || exit 1 chown -R root.root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -78,6 +82,7 @@ CXXFLAGS="$SLKCFLAGS" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ + --mandir=/usr/man \ --enable-threadsafe \ --enable-cross-thread-connections \ --enable-tempstore=yes \ @@ -107,18 +112,18 @@ gzip -9 $PKG/usr/man/man1/sqlite3.1 sed -i 's|Libs: -L${libdir} -lsqlite3|Libs: -L${libdir} -lsqlite3 -ldl|g' \ $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/sqlite3.pc -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PKGNAM-$OLD_STYLE cp -a \ README* VERSION \ - $PKG/usr/doc/$PKGNAM-$VERSION + $PKG/usr/doc/$PKGNAM-$OLD_STYLE # Add a COPYRIGHT file -- http://www.sqlite.org/copyright.html -zcat $CWD/COPYRIGHT.gz > $PKG/usr/doc/$PKGNAM-$VERSION/COPYRIGHT -rm -rf $PKG/usr/doc/$PKGNAM-$VERSION/CVS +zcat $CWD/COPYRIGHT.gz > $PKG/usr/doc/$PKGNAM-$OLD_STYLE/COPYRIGHT +rm -rf $PKG/usr/doc/$PKGNAM-$OLD_STYLE/CVS find $PKG/usr/doc -type f -exec chmod 0644 {} \; mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$OLD_STYLE-$ARCH-$BUILD.txz |