summaryrefslogtreecommitdiff
path: root/system/distorm3/distorm3.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/distorm3/distorm3.SlackBuild')
-rw-r--r--system/distorm3/distorm3.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/system/distorm3/distorm3.SlackBuild b/system/distorm3/distorm3.SlackBuild
index d17edb9768..b9b8a0ea18 100644
--- a/system/distorm3/distorm3.SlackBuild
+++ b/system/distorm3/distorm3.SlackBuild
@@ -24,6 +24,7 @@
# Created v3.3.0 December 2015, Barry J. Grundy.
PRGNAM=distorm3
+SRCNAM=distorm
VERSION=${VERSION:-3.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,9 +61,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-unzip $CWD/$PRGNAM-$VERSION.zip
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \