summaryrefslogtreecommitdiff
path: root/system/john
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-05-01 10:32:12 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-05-03 09:08:24 -0500
commit37e1e35bd2b064b552c1af8eea336b6a13910a81 (patch)
tree78429319fe2fc1c7a48c0c499109210c9227683a /system/john
parent4253bb1c971c1dde4ba2af0dc93d1ae9025616fc (diff)
downloadslackbuilds-37e1e35bd2b064b552c1af8eea336b6a13910a81.tar.gz
system/john: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
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