diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:11:22 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:11:22 -0400 |
commit | b420f1dc98c6b04b18cd41cc68e0a0be88080eeb (patch) | |
tree | 5347eef9dd11d915533042d887bf2442238ee872 | |
parent | d3f3831574fc9e78731b81bf1bec69b4dbadecef (diff) | |
download | slackbuilds-b420f1dc98c6b04b18cd41cc68e0a0be88080eeb.tar.gz |
misc/viking: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
-rw-r--r-- | misc/viking/viking.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/misc/viking/viking.SlackBuild b/misc/viking/viking.SlackBuild index 3bdbdd245f..a510817dcc 100644 --- a/misc/viking/viking.SlackBuild +++ b/misc/viking/viking.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=viking VERSION=${VERSION:-0.9.9} -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 set -e |