From 8d45192a4044ab2ad3fa8a8f58681bc2c26b24ac Mon Sep 17 00:00:00 2001 From: David Spencer Date: Sat, 16 Jan 2016 19:31:54 +0000 Subject: [PATCH] development/npm2tgz: Support alternate tarball name. Signed-off-by: David Spencer --- development/npm2tgz/npm2tgz.SlackBuild | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/development/npm2tgz/npm2tgz.SlackBuild b/development/npm2tgz/npm2tgz.SlackBuild index 88b06a8dcc..3ceb1be8f3 100644 --- a/development/npm2tgz/npm2tgz.SlackBuild +++ b/development/npm2tgz/npm2tgz.SlackBuild @@ -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 . \