summaryrefslogtreecommitdiff
path: root/desktop/ion
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:01:09 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:01:09 -0400
commitf8a03c9a90754a27250358e4f972ec89b500753e (patch)
tree07c139eb2f1423fa5e2ea703e562d17f88a8555c /desktop/ion
parent601b4afa4e6143fcd1ed3304c11e8185eee13671 (diff)
downloadslackbuilds-f8a03c9a90754a27250358e4f972ec89b500753e.tar.gz
desktop/ion: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/ion')
-rw-r--r--desktop/ion/ion.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/ion/ion.SlackBuild b/desktop/ion/ion.SlackBuild
index 89175fb27e..c08283b608 100644
--- a/desktop/ion/ion.SlackBuild
+++ b/desktop/ion/ion.SlackBuild
@@ -8,10 +8,19 @@
PRGNAM=ion
VERSION=3_20090110
-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
@@ -28,6 +37,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e