summaryrefslogtreecommitdiff
path: root/system/mozilla-nss
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2011-01-10 19:48:19 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-01-10 19:48:19 -0600
commit4efe7dc1f10dcb908ad7345369628e7a9749be7e (patch)
tree5d043d51078b4938df3f33526566af4b2ecbf317 /system/mozilla-nss
parent19eb609918e33900643f64a81061f14bba32e86d (diff)
downloadslackbuilds-4efe7dc1f10dcb908ad7345369628e7a9749be7e.tar.gz
system/mozilla-nss: Fixed architecture detection (made automatic)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/mozilla-nss')
-rw-r--r--system/mozilla-nss/mozilla-nss.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/system/mozilla-nss/mozilla-nss.SlackBuild b/system/mozilla-nss/mozilla-nss.SlackBuild
index e7110cea27..fc9c7f7f94 100644
--- a/system/mozilla-nss/mozilla-nss.SlackBuild
+++ b/system/mozilla-nss/mozilla-nss.SlackBuild
@@ -27,10 +27,17 @@ SRCNAM=nss
VERSION=${VERSION:-3.12.4}
NSPR=${NSPR:-4.8}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
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