aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:11:00 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:11:00 -0400
commitc6b602f300bfb1404017ae7b253ae2f8bff3f8af (patch)
treea13e6a36f26f5167732a1f1e18efa7fd47903ab9 /misc
parent1b28803eed533994990bb271828ae8564183917c (diff)
misc/gxmessage: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r--misc/gxmessage/gxmessage.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/misc/gxmessage/gxmessage.SlackBuild b/misc/gxmessage/gxmessage.SlackBuild
index 3b546ce04b063..515c42b0ae98c 100644
--- a/misc/gxmessage/gxmessage.SlackBuild
+++ b/misc/gxmessage/gxmessage.SlackBuild
@@ -31,10 +31,19 @@
PRGNAM=gxmessage
VERSION=${VERSION:-2.12.4}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-2}
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
@@ -49,6 +58,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e