development/npm2tgz: Support alternate tarball name.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-01-16 19:31:54 +00:00 committed by Willy Sudiarto Raharjo
parent cb728cbf7b
commit 8d45192a40

View file

@ -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 . \