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.
|
# Installation script.
|
||||||
# With this script allows you to install the slpkg as a Slackware package binary file.
|
# With this script allows you to install the slpkg as a Slackware package binary file.
|
||||||
# Support wget download.
|
# 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 ..
|
cd ..
|
||||||
for file in $ARCHIVES; do
|
for file in $ARCHIVES; do
|
||||||
if [ -f $file ]; then
|
if [ -f $file ]; then
|
||||||
|
|
|
@ -68,7 +68,8 @@ mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz \
|
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
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
|
@ -108,4 +109,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
||||||
|
|
||||||
$INSTALL $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
$INSTALL $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
Loading…
Reference in a new issue