summaryrefslogtreecommitdiff
path: root/libraries/swfdec/swfdec.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/swfdec/swfdec.SlackBuild')
-rw-r--r--libraries/swfdec/swfdec.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/libraries/swfdec/swfdec.SlackBuild b/libraries/swfdec/swfdec.SlackBuild
index 6d7fcf9075..2a77ad640c 100644
--- a/libraries/swfdec/swfdec.SlackBuild
+++ b/libraries/swfdec/swfdec.SlackBuild
@@ -24,9 +24,17 @@
PRGNAM=swfdec
VERSION=0.8.4
-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