aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--academic/pgrouting/pgrouting.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/academic/pgrouting/pgrouting.SlackBuild b/academic/pgrouting/pgrouting.SlackBuild
index 88a3b373e3264..dbc17725d1ef2 100644
--- a/academic/pgrouting/pgrouting.SlackBuild
+++ b/academic/pgrouting/pgrouting.SlackBuild
@@ -62,7 +62,11 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
rm -rf $TMP/$PRGNAM-$VERSION
cd $TMP
-tar xvf $CWD/v$VERSION.tar.gz
+if [ -e $CWD/v$VERSION.tar.gz ]; then
+ tar xvf $CWD/v$VERSION.tar.gz
+else
+ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+fi
cd $PRGNAM-$VERSION
chown -R root:root .
find . \