aboutsummaryrefslogtreecommitdiff
path: root/libraries/swfdec
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-05-01 10:28:39 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-05-03 09:08:23 -0500
commit4852b32b67c89974b9d516de8cce8126b3f11098 (patch)
tree6ae94db45003097d9b66c7f5806e193e6ccce56a /libraries/swfdec
parentc872b4bd4ccaa8b79cf4e2c69bcc1995d15040c5 (diff)
libraries/swfdec: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/swfdec')
-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 6d7fcf90757b3..2a77ad640c7ea 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