summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author David Somero <xgizzmo@slackbuilds.org>2010-06-04 01:16:54 -0400
committer David Somero <xgizzmo@slackbuilds.org>2010-06-04 01:16:54 -0400
commit555b807655c7fc0bb7fc19b447ef24bb1572c2f1 (patch)
treef2a6caacc52056709bca056e64b63ed4aed06844 /system
parent6bbfad2973b54a6f6df5cb680ea6f443faba8c8b (diff)
downloadslackbuilds-555b807655c7fc0bb7fc19b447ef24bb1572c2f1.tar.gz
slackbuilds-555b807655c7fc0bb7fc19b447ef24bb1572c2f1.tar.xz
system/tiger: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/tiger/tiger.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/system/tiger/tiger.SlackBuild b/system/tiger/tiger.SlackBuild
index dabb33b62b..e3ce594fb6 100644
--- a/system/tiger/tiger.SlackBuild
+++ b/system/tiger/tiger.SlackBuild
@@ -10,10 +10,19 @@
PRGNAM=tiger
VERSION=${VERSION:-3.2.3}
-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 # Exit on most errors