summaryrefslogtreecommitdiff
path: root/system/john
diff options
context:
space:
mode:
Diffstat (limited to 'system/john')
-rw-r--r--system/john/john.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/system/john/john.SlackBuild b/system/john/john.SlackBuild
index bf35eee4e2..c7441a1d51 100644
--- a/system/john/john.SlackBuild
+++ b/system/john/john.SlackBuild
@@ -6,10 +6,17 @@
PRGNAM=john
VERSION=${VERSION:-1.7.3.1}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM