From 83912a74a918e29a6f6cfa00f39e89d5f62f9612 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 17 Feb 2020 09:50:44 +0100 Subject: [PATCH] Added bz2 archive Signed-off-by: Dimitris Zlatanidis --- install.sh | 3 ++- slackbuild/slpkg.SlackBuild | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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