diff options
Diffstat (limited to 'source/ap/sqlite/sqlite.SlackBuild')
-rwxr-xr-x | source/ap/sqlite/sqlite.SlackBuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/ap/sqlite/sqlite.SlackBuild b/source/ap/sqlite/sqlite.SlackBuild index bbb03bd3..e3284444 100755 --- a/source/ap/sqlite/sqlite.SlackBuild +++ b/source/ap/sqlite/sqlite.SlackBuild @@ -26,6 +26,10 @@ PKGNAM=sqlite VERSION=${VERSION:-$(echo $PKGNAM-src-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} OLD_STYLE=$(printf %d $(echo $VERSION | cut -b 1)).$(printf %d $(echo $VERSION | cut -b 2,3)).$(printf %d $(echo $VERSION | cut -b 4,5)) +PATCHLEVEL=$(printf %d $(echo $VERSION | cut -b 6,7)) +if [ ! "$PATCHLEVEL" = "0" ]; then + OLD_STYLE=${OLD_STYLE}.${PATCHLEVEL} +fi BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j7 "} @@ -64,7 +68,7 @@ SLKCFLAGS="$SLKCFLAGS -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -D rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf $PKGNAM-$VERSION +rm -rf $PKGNAM-src-$VERSION tar xvf $CWD/$PKGNAM-src-$VERSION.tar.?z* || exit 1 cd $PKGNAM-src-$VERSION || exit 1 chown -R root.root . |