aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:15:54 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:15:54 -0400
commitf137bfd2cb3d9beba6e27881f996d8f423d7a9b3 (patch)
tree56afc4f7bbbca43bad117eb9d2e39e1049235a5e /system
parent0e0ad5ccf5daed19313b09bde2882a0d7be700f8 (diff)
system/ifuse: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/ifuse/ifuse.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/system/ifuse/ifuse.SlackBuild b/system/ifuse/ifuse.SlackBuild
index 8aa7d787b816b..fafbb6fd6fe7f 100644
--- a/system/ifuse/ifuse.SlackBuild
+++ b/system/ifuse/ifuse.SlackBuild
@@ -28,10 +28,19 @@
PRGNAM=ifuse
VERSION=${VERSION:-0.9.7}
-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
@@ -46,6 +55,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e