From 37e1e35bd2b064b552c1af8eea336b6a13910a81 Mon Sep 17 00:00:00 2001 From: dsomero Date: Sun, 1 May 2011 10:32:12 -0400 Subject: system/john: ARCH fixes and cleanup. Signed-off-by: dsomero --- system/john/john.SlackBuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3