aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:17:01 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:17:01 -0400
commitccd37901413004e632e6c9bc0fdb78508b1beb16 (patch)
treef1cc3d38dc198fdad6e454c4552da0093ac64058
parentadc4387a1a492324b6e08c3d22f463123b39a585 (diff)
system/unrar: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
-rw-r--r--system/unrar/unrar.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/system/unrar/unrar.SlackBuild b/system/unrar/unrar.SlackBuild
index c71997f359bb..1275e3175e6b 100644
--- a/system/unrar/unrar.SlackBuild
+++ b/system/unrar/unrar.SlackBuild
@@ -26,10 +26,19 @@
PRGNAM=unrar
VERSION=3.9.7
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM