From 1a3c6ef05867d277d799d67e6a59978e76db9973 Mon Sep 17 00:00:00 2001 From: David Somero Date: Fri, 4 Jun 2010 01:01:50 -0400 Subject: desktop/wmmon: Misc automated cleanups. Signed-off-by: David Somero --- desktop/wmmon/wmmon.SlackBuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'desktop/wmmon') diff --git a/desktop/wmmon/wmmon.SlackBuild b/desktop/wmmon/wmmon.SlackBuild index 3a36773e34..502557f639 100644 --- a/desktop/wmmon/wmmon.SlackBuild +++ b/desktop/wmmon/wmmon.SlackBuild @@ -6,13 +6,22 @@ PRGNAM=wmmon VERSION=1.0b2_p14 -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} SRCVER=$(echo $VERSION | cut -d_ -f1) PATCHVER=$(echo $VERSION | cut -d_ -f2) +# 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 -- cgit v1.2.3-65-gdbad