From 4852b32b67c89974b9d516de8cce8126b3f11098 Mon Sep 17 00:00:00 2001 From: dsomero Date: Sun, 1 May 2011 10:28:39 -0400 Subject: libraries/swfdec: ARCH fixes and cleanup. Signed-off-by: dsomero --- libraries/swfdec/swfdec.SlackBuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libraries') 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 -- cgit v1.2.3