mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Updated installation bash script
This commit is contained in:
parent
0f03a57873
commit
b158259629
3 changed files with 11 additions and 12 deletions
|
@ -2,6 +2,7 @@
|
|||
Added:
|
||||
- Quit option in new-config command
|
||||
Updated:
|
||||
- Installation bash script
|
||||
- Messages and references messages
|
||||
- Image types for graph
|
||||
Fixed:
|
||||
|
|
19
install.sh
19
install.sh
|
@ -29,23 +29,18 @@ cat slpkg/__metadata__.py | grep "__version_info__ = (" \
|
|||
|
||||
PRGNAM=slpkg
|
||||
VERSION=${VERSION:-$(__version)}
|
||||
TAG=${TAG:-_dsw}
|
||||
|
||||
# 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"
|
||||
cd ..
|
||||
for file in $ARCHIVES; do
|
||||
if [ -f $file ]; then
|
||||
cp $file $PRGNAM-$VERSION/slackbuild
|
||||
cd $PRGNAM-$VERSION/slackbuild
|
||||
chmod +x $PRGNAM.SlackBuild
|
||||
./$PRGNAM.SlackBuild
|
||||
rm $file
|
||||
fi
|
||||
if [ -f $file ]; then
|
||||
cp $file $PRGNAM-$VERSION/slackbuild
|
||||
cd $PRGNAM-$VERSION/slackbuild
|
||||
chmod +x $PRGNAM.SlackBuild
|
||||
./$PRGNAM.SlackBuild
|
||||
rm $file
|
||||
fi
|
||||
done
|
||||
|
||||
# install or upgrade with new version
|
||||
upgradepkg --install-new /tmp/$PRGNAM-$VERSION-*$TAG.t?z
|
||||
|
|
|
@ -32,6 +32,7 @@ PRGNAM=slpkg
|
|||
VERSION=${VERSION:-$(__version)}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_dsw}
|
||||
INSTALL="upgradepkg --install-new"
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
|
@ -121,3 +122,5 @@ 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
|
||||
|
|
Loading…
Reference in a new issue