diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-19 21:56:58 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-21 01:34:45 -0500 |
commit | c316bd5c2e509b068c28794f45e04c7422aefbe4 (patch) | |
tree | 67d28f05c210c9700ce6e4bed99fef487f17d7db /multimedia/Songbird/Songbird.SlackBuild | |
parent | e8a426ab1de624c54ab55ec513171ba569c2c7ef (diff) | |
download | slackbuilds-c316bd5c2e509b068c28794f45e04c7422aefbe4.tar.gz |
multimedia/songbird: Miscellaneous cleanups.
Diffstat (limited to 'multimedia/Songbird/Songbird.SlackBuild')
-rw-r--r-- | multimedia/Songbird/Songbird.SlackBuild | 13 |
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 |