diff options
author | dsomero <xgizzmo@slackbuilds.org> | 2011-05-01 10:32:12 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-05-03 09:08:24 -0500 |
commit | 37e1e35bd2b064b552c1af8eea336b6a13910a81 (patch) | |
tree | 78429319fe2fc1c7a48c0c499109210c9227683a /system/john | |
parent | 4253bb1c971c1dde4ba2af0dc93d1ae9025616fc (diff) |
system/john: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/john')
-rw-r--r-- | system/john/john.SlackBuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/system/john/john.SlackBuild b/system/john/john.SlackBuild index bf35eee4e2dce..c7441a1d512c4 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 |