mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Added bz2 archive
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
eea7997c78
commit
83912a74a9
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 . \
|
||||
|
|
Loading…
Reference in a new issue