aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2013-11-24 22:35:56 +0000
committerHeinz Wiesinger <pprkut@slackbuilds.org>2013-11-25 18:19:38 +0100
commit3309ae9e30b6a9101696b3910ecb568162b10417 (patch)
tree857e647d0985a04e731d8920f4d29e74cee1e409 /misc
parent5f04eb67a74945453b66422cbe132ab40d30d62f (diff)
misc/xbanish: Fixed for github tarball.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-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 24799fab8f504..e40716f7cb0e2 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 . \