Commits

Moises Henriquez committed cc6cd01

sqlite update to 3.8.0.2

  • Participants
  • Parent commits 191cf93

Comments (0)

Files changed (1)

File var/vabs/sqlite/src/sqlite.SlackBuild

 
 NAME=sqlite
 SRCNAME=sqlite-autoconf
-VERSION=${VERSION:-"3080001"}
-OLD_STYLE="3.8.0.1"
-#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))
+VERSION=${VERSION:-"3.8.0.2"}
+SRCVER=$(echo $VERSION | sed 's|\.|0|g')
 BUILDNUM=${BUILDNUM:-"1"}
 VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}
 BUILD=${BUILD:-"$BUILDNUM""$VL_VERSION"}
-LINK=${LINK:-"http://www.sqlite.org/$(date +%Y)/${SRCNAME}-${VERSION}.tar.gz"}
+LINK=${LINK:-"http://www.sqlite.org/$(date +%Y)/${SRCNAME}-${SRCVER}.tar.gz"}
 
 NUMJOBS=${NUMJOBS:-" -j6 "}
 
 mkdir -p $TMP $PKG
 cd $TMP
 rm -rf $NAME-$VERSION
-tar xvf $CWD/$SRCNAME-$VERSION.tar.?z* || exit 1
-cd $SRCNAME-$VERSION || exit 1
+tar xvf $CWD/$(basename $LINK) || exit 1
+cd $SRCNAME-$SRCVER || exit 1
 chown -R root.root .
 find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
   | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
 
 # Add missed man page:
-install -D -m 0644 sqlite3.1 $PKG/usr/man/man1/sqlite3.1
-gzip -9 $PKG/usr/man/man1/sqlite3.1
+install -D -m 0644 sqlite3.1 $PKG/usr/man/man1/sqlite3.1 || exit 1
+gzip -9 $PKG/usr/man/man1/sqlite3.1 || exit 1
 
 # Fix up the pkgconfig file
 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/$NAME-$OLD_STYLE
+mkdir -p $PKG/usr/doc/$NAME-$SRCVER
 cp -a \
   README* VERSION \
-  $PKG/usr/doc/$NAME-$OLD_STYLE
+  $PKG/usr/doc/$NAME-$SRCVER
 # Add a COPYRIGHT file -- http://www.sqlite.org/copyright.html
-zcat $CWD/COPYRIGHT.gz > $PKG/usr/doc/$NAME-$OLD_STYLE/COPYRIGHT
-rm -rf $PKG/usr/doc/$NAME-$OLD_STYLE/CVS
+zcat $CWD/COPYRIGHT.gz > $PKG/usr/doc/$NAME-$SRCVER/COPYRIGHT
+rm -rf $PKG/usr/doc/$NAME-$SRCVER/CVS
 find $PKG/usr/doc -type f -exec chmod 0644 {} \;
 
 mkdir -p $PKG/install
 
 cd $PKG
 requiredbuilder -v -y -s $RELEASEDIR $PKG
-makepkg -c n -l y $RELEASEDIR/$NAME-$OLD_STYLE-$ARCH-$BUILD.txz
+makepkg -c n -l y $RELEASEDIR/$NAME-$VERSION-$ARCH-$BUILD.txz
 
 rm -rf $TMP