mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
fix script, remove tar
This commit is contained in:
parent
4c2dc48216
commit
08fc81c247
1 changed files with 5 additions and 0 deletions
|
@ -33,20 +33,25 @@ if [ -f $PRGNAM-$VERSION.zip ]; then
|
|||
cd $PRGNAM-$VERSION/slackbuild
|
||||
chmod +x $PRGNAM.SlackBuild
|
||||
./$PRGNAM.SlackBuild
|
||||
rm $PRGNAM-$VERSION.zip
|
||||
elif [ -f v$VERSION.zip ]; then
|
||||
cp v$VERSION.zip $PRGNAM-$VERSION/slackbuild
|
||||
cd $PRGNAM-$VERSION/slackbuild
|
||||
chmod +x $PRGNAM.SlackBuild
|
||||
./$PRGNAM.SlackBuild
|
||||
rm v$VERSION.zip
|
||||
elif [ -f $PRGNAM-$VERSION.tar.gz ]; then
|
||||
cp $PRGNAM-$VERSION.tar.gz $PRGNAM-$VERSION/slackbuild
|
||||
cd $PRGNAM-$VERSION/slackbuild
|
||||
chmod +x $PRGNAM.SlackBuild
|
||||
./$PRGNAM.SlackBuild
|
||||
rm $PRGNAM-$VERSION.tar.gz
|
||||
else
|
||||
cp v$VERSION.tar.gz $PRGNAM-$VERSION/slackbuild
|
||||
cd $PRGNAM-$VERSION/slackbuild
|
||||
chmod +x $PRGNAM.SlackBuild
|
||||
./$PRGNAM.SlackBuild
|
||||
rm v$VERSION.tar.gz
|
||||
fi
|
||||
# install or upgrade with new version
|
||||
upgradepkg --install-new /tmp/$PRGNAM-$VERSION-*$TAG.tgz
|
||||
|
|
Loading…
Reference in a new issue