summaryrefslogtreecommitdiff
path: root/audio/asunder/asunder.SlackBuild
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 00:59:42 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 00:59:42 -0400
commit66c4965388b4d8570bd458e306ae89e40e3526dd (patch)
tree0851088de6e854c917f8f91984cd471acdedf6cd /audio/asunder/asunder.SlackBuild
parente5624e52e90f8edb2134b70cd66579e018cb67ea (diff)
downloadslackbuilds-66c4965388b4d8570bd458e306ae89e40e3526dd.tar.gz
audio/asunder: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'audio/asunder/asunder.SlackBuild')
-rw-r--r--audio/asunder/asunder.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/audio/asunder/asunder.SlackBuild b/audio/asunder/asunder.SlackBuild
index fa8b75bf01..f1fb5f80e7 100644
--- a/audio/asunder/asunder.SlackBuild
+++ b/audio/asunder/asunder.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=asunder
VERSION=${VERSION:-1.6.2}
-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
@@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
rm -rf $PKG