diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:00:46 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:00:46 -0400 |
commit | cea0a96bd33ca7c917cf0dd6be16d659bbf78b4d (patch) | |
tree | 1736a327983ffd68d5eca27aafacf34dfb014db5 /audio/xmms-scrobbler/xmms-scrobbler.SlackBuild | |
parent | 0bf751473b3e6d0b3da3222506e7bc31b5be7b07 (diff) |
audio/xmms-scrobbler: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'audio/xmms-scrobbler/xmms-scrobbler.SlackBuild')
-rw-r--r-- | audio/xmms-scrobbler/xmms-scrobbler.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/audio/xmms-scrobbler/xmms-scrobbler.SlackBuild b/audio/xmms-scrobbler/xmms-scrobbler.SlackBuild index f5190d537f03a..0e3aa454320ed 100644 --- a/audio/xmms-scrobbler/xmms-scrobbler.SlackBuild +++ b/audio/xmms-scrobbler/xmms-scrobbler.SlackBuild @@ -5,10 +5,19 @@ PRGNAM=xmms-scrobbler VERSION=${VERSION:-0.4.0} -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 @@ -23,6 +32,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |