From a135267a52114c9072ba56f00beca771da1fc34e Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sat, 16 Nov 2013 20:18:21 -0600 Subject: development/npm2tgz: Tweaked tarball extraction routine github's archive download system is braindead. Signed-off-by: Robby Workman --- development/npm2tgz/npm2tgz.SlackBuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/development/npm2tgz/npm2tgz.SlackBuild b/development/npm2tgz/npm2tgz.SlackBuild index 4799d1accb8c5..561c914fcc888 100644 --- a/development/npm2tgz/npm2tgz.SlackBuild +++ b/development/npm2tgz/npm2tgz.SlackBuild @@ -23,7 +23,16 @@ set -e # Exit on most errors rm -fr $TMP/$PRGNAM-$VERSION $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -tar xvf $CWD/$SRCNAM + +if [ -e $CWD/$VERSION.tar.gz ]; then + tar xvf $CWD/$SRCNAM +elif [ -e $CWD/$PRGNAM-$VERSION.tar.gz ]; then + tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +else + echo "Source tarball is unusable or not found." + exit 1 +fi + cd $PRGNAM-$VERSION chown -R root.root . find . \ -- cgit v1.2.3