summaryrefslogtreecommitdiff
path: root/multimedia/xmms-crossfade/xmms-crossfade.SlackBuild
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:12:08 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:12:08 -0400
commit8cffb97833d658ce66de9bef2503f2f9e62bef5f (patch)
tree752a1a648c82c81cdc796f8b60706f59c581b0fc /multimedia/xmms-crossfade/xmms-crossfade.SlackBuild
parent70ea9bc7bc4ec4b3df43c0af8058356888989492 (diff)
downloadslackbuilds-8cffb97833d658ce66de9bef2503f2f9e62bef5f.tar.gz
multimedia/xmms-crossfade: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'multimedia/xmms-crossfade/xmms-crossfade.SlackBuild')
-rw-r--r--multimedia/xmms-crossfade/xmms-crossfade.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/multimedia/xmms-crossfade/xmms-crossfade.SlackBuild b/multimedia/xmms-crossfade/xmms-crossfade.SlackBuild
index 71cdc0f914..1eab833be3 100644
--- a/multimedia/xmms-crossfade/xmms-crossfade.SlackBuild
+++ b/multimedia/xmms-crossfade/xmms-crossfade.SlackBuild
@@ -6,10 +6,19 @@
PRGNAM=xmms-crossfade
VERSION=${VERSION:-0.3.14}
-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