diff options
Diffstat (limited to 'development/npm2tgz')
-rw-r--r-- | development/npm2tgz/npm2tgz.SlackBuild | 7 |
1 files 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 . \ |