summaryrefslogtreecommitdiff
path: root/multimedia/Songbird/Songbird.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/Songbird/Songbird.SlackBuild')
-rw-r--r--multimedia/Songbird/Songbird.SlackBuild13
1 files changed, 13 insertions, 0 deletions
diff --git a/multimedia/Songbird/Songbird.SlackBuild b/multimedia/Songbird/Songbird.SlackBuild
index d821a45af5..ba51fa4dcf 100644
--- a/multimedia/Songbird/Songbird.SlackBuild
+++ b/multimedia/Songbird/Songbird.SlackBuild
@@ -30,6 +30,16 @@ ARCH=${ARCH:-i686} # Precompiled binary. Leave this as it is or "x86_64"
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
@@ -48,6 +58,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SRC_ARCH="x86_64"
LIBDIRSUFFIX="64"
+else
+ printf "\n$ARCH is unsupported...\n\n"
+ exit 1
fi
set -e # Exit on most errors