mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
development/npm2tgz: Support alternate tarball name.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
cb728cbf7b
commit
8d45192a40
1 changed files with 3 additions and 4 deletions
|
@ -11,8 +11,6 @@ TAG=${TAG:-_SBo}
|
|||
|
||||
ARCH=noarch
|
||||
|
||||
SRCNAM="$VERSION.tar.gz"
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
|
@ -20,10 +18,11 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
set -e
|
||||
|
||||
rm -rf $TMP/$PRGNAM-$VERSION $PKG
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
tar xvf $CWD/$SRCNAM
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root.root .
|
||||
find -L . \
|
||||
|
|
Loading…
Reference in a new issue