summaryrefslogtreecommitdiff
path: root/network/irssi_otr
diff options
context:
space:
mode:
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 . \