diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:17:01 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:17:01 -0400 |
commit | ccd37901413004e632e6c9bc0fdb78508b1beb16 (patch) | |
tree | f1cc3d38dc198fdad6e454c4552da0093ac64058 /system/unrar | |
parent | adc4387a1a492324b6e08c3d22f463123b39a585 (diff) |
system/unrar: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/unrar')
-rw-r--r-- | system/unrar/unrar.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/system/unrar/unrar.SlackBuild b/system/unrar/unrar.SlackBuild index c71997f359bbe..1275e3175e6b7 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 |