diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 00:59:42 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 00:59:42 -0400 |
commit | 66c4965388b4d8570bd458e306ae89e40e3526dd (patch) | |
tree | 0851088de6e854c917f8f91984cd471acdedf6cd | |
parent | e5624e52e90f8edb2134b70cd66579e018cb67ea (diff) | |
download | slackbuilds-66c4965388b4d8570bd458e306ae89e40e3526dd.tar.gz |
audio/asunder: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
-rw-r--r-- | audio/asunder/asunder.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/audio/asunder/asunder.SlackBuild b/audio/asunder/asunder.SlackBuild index fa8b75bf01..f1fb5f80e7 100644 --- a/audio/asunder/asunder.SlackBuild +++ b/audio/asunder/asunder.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=asunder VERSION=${VERSION:-1.6.2} -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 @@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi rm -rf $PKG |