summaryrefslogtreecommitdiff
path: root/desktop/afterstep
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:00:54 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:00:54 -0400
commit8421e377e25b27c6c7e983ce2d6d4b4695e1e9d9 (patch)
tree44ee96d405ca4b92ff7edc5e78fa871d4182e2c6 /desktop/afterstep
parent4c23293fb4419cf3596147020247b39d80ceb553 (diff)
downloadslackbuilds-8421e377e25b27c6c7e983ce2d6d4b4695e1e9d9.tar.gz
desktop/afterstep: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/afterstep')
-rw-r--r--desktop/afterstep/afterstep.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/afterstep/afterstep.SlackBuild b/desktop/afterstep/afterstep.SlackBuild
index 1ddb360972..d23af0437c 100644
--- a/desktop/afterstep/afterstep.SlackBuild
+++ b/desktop/afterstep/afterstep.SlackBuild
@@ -5,10 +5,19 @@
PRGNAM=afterstep
VERSION=${VERSION:-2.2.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
@@ -25,6 +34,9 @@ elif [ "$ARCH" = "s390" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e