diff --git a/install.sh b/install.sh index d3b9c8c6..38f900aa 100755 --- a/install.sh +++ b/install.sh @@ -34,7 +34,8 @@ VERSION=${VERSION:-$(__version)} # Installation script. # With this script allows you to install the slpkg as a Slackware package binary file. # Support wget download. -ARCHIVES="$PRGNAM-$VERSION.tar.gz $PRGNAM-$VERSION.zip v$VERSION.tar.gz v$VERSION.zip" +ARCHIVES="$PRGNAM-$VERSION.tar.gz $PRGNAM-$VERSION.zip v$VERSION.tar.gz v$VERSION.zip \ + $PRGNAM-$VERSION.tar.bz2" cd .. for file in $ARCHIVES; do if [ -f $file ]; then diff --git a/slackbuild/slpkg.SlackBuild b/slackbuild/slpkg.SlackBuild index b9aca314..cbdb42bd 100755 --- a/slackbuild/slpkg.SlackBuild +++ b/slackbuild/slpkg.SlackBuild @@ -68,7 +68,8 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz \ - || unzip $CWD/$PRGNAM-$VERSION.zip || unzip $CWD/v$VERSION.zip + || $CWD/$PRGNAM-$VERSION.tar.bz2 || unzip $CWD/$PRGNAM-$VERSION.zip \ + || unzip $CWD/v$VERSION.zip cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -108,4 +109,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz} -$INSTALL $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz \ No newline at end of file +$INSTALL $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz