summaryrefslogtreecommitdiff
path: root/misc/xbanish/xbanish.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/xbanish/xbanish.SlackBuild')
-rw-r--r--misc/xbanish/xbanish.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/misc/xbanish/xbanish.SlackBuild b/misc/xbanish/xbanish.SlackBuild
index 24799fab8f..e40716f7cb 100644
--- a/misc/xbanish/xbanish.SlackBuild
+++ b/misc/xbanish/xbanish.SlackBuild
@@ -29,7 +29,6 @@
PRGNAM=xbanish
VERSION=${VERSION:-1.1}
-DISTNAME=v$VERSION
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -66,7 +65,11 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$DISTNAME.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 -L . \