mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-25 09:58:41 +01:00
Updated for scripts
This commit is contained in:
parent
819c706da2
commit
bbf72ad9f3
2 changed files with 3 additions and 7 deletions
|
@ -30,10 +30,8 @@ cat setup.cfg | grep "version =" | tr -d "[:space:]" | cut -c9-13 | tr , .
|
|||
PRGNAM=slpkg
|
||||
VERSION=${VERSION:-$(__version)}
|
||||
|
||||
# Installation script.
|
||||
# With this script allows you to install the slpkg as a Slackware package binary file.
|
||||
ARCHIVES="$PRGNAM-$VERSION.tar.gz $PRGNAM-$VERSION.zip v$VERSION.tar.gz v$VERSION.zip \
|
||||
$PRGNAM-$VERSION.tar.bz2"
|
||||
ARCHIVES="$PRGNAM-$VERSION.tar.gz $PRGNAM-$VERSION.tar.bz2 $PRGNAM-$VERSION.zip"
|
||||
|
||||
cd ..
|
||||
for file in $ARCHIVES; do
|
||||
if [ -f $file ]; then
|
||||
|
|
|
@ -76,9 +76,7 @@ rm -rf $PKG
|
|||
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 \
|
||||
|| tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || unzip $CWD/$PRGNAM-$VERSION.zip \
|
||||
|| unzip $CWD/v$VERSION.zip
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || unzip $CWD/$PRGNAM-$VERSION.zip
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
|
|
Loading…
Reference in a new issue