aboutsummaryrefslogtreecommitdiff
path: root/multimedia/exaile/exaile.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-19 21:58:27 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-21 01:34:54 -0500
commitfeff537d3147abe0782fc6798a7a09082a70df2d (patch)
tree0ed42dc0d4810929ab8eefbbcaea13b119103e58 /multimedia/exaile/exaile.SlackBuild
parentc316bd5c2e509b068c28794f45e04c7422aefbe4 (diff)
multimedia/exaile: Miscellaneous cleanups.
Diffstat (limited to 'multimedia/exaile/exaile.SlackBuild')
-rw-r--r--multimedia/exaile/exaile.SlackBuild13
1 files changed, 12 insertions, 1 deletions
diff --git a/multimedia/exaile/exaile.SlackBuild b/multimedia/exaile/exaile.SlackBuild
index 01158ee537b88..8ee3261e2314e 100644
--- a/multimedia/exaile/exaile.SlackBuild
+++ b/multimedia/exaile/exaile.SlackBuild
@@ -6,10 +6,19 @@
PRGNAM=exaile
VERSION=${VERSION:-0.3.0.1}
-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) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -21,6 +30,8 @@ elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
+else
+ LIBDIRSUFFIX=""
fi
set -e