summaryrefslogtreecommitdiff
path: root/network/irssi_otr
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2015-09-07 14:16:10 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-09-12 08:11:27 +0700
commita7f0b4516b9ae587ac0a0cfd6c917da08fbd9644 (patch)
treead64aeb0d434009dfa17d23f39f902100df358f9 /network/irssi_otr
parentc80d10db39ed369b360117b99a5122eedf028191 (diff)
downloadslackbuilds-a7f0b4516b9ae587ac0a0cfd6c917da08fbd9644.tar.gz
network/irssi_otr: Handle github vXXX.tar.gz filename.
Diffstat (limited to 'network/irssi_otr')
-rw-r--r--network/irssi_otr/irssi_otr.SlackBuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/network/irssi_otr/irssi_otr.SlackBuild b/network/irssi_otr/irssi_otr.SlackBuild
index c085bb4609..9f10a9ca5c 100644
--- a/network/irssi_otr/irssi_otr.SlackBuild
+++ b/network/irssi_otr/irssi_otr.SlackBuild
@@ -12,6 +12,9 @@
# - upstream switched from cmake to autoconf, rewrite most of script.
# - xchat support was dropped by upstream, so remove all references.
+# 20150907 bkw:
+# - handle case where file was saved as v1.0.0.tar.gz
+
PRGNAM=irssi_otr
VERSION=${VERSION:-1.0.0}
BUILD=${BUILD:-1}
@@ -52,7 +55,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $TARNAM-$VERSION
-tar xvf $CWD/$TARNAM-$VERSION.tar.gz
+tar xvf $CWD/$TARNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $TARNAM-$VERSION
chown -R root:root .
find -L . \