diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:01:50 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:01:50 -0400 |
commit | 1a3c6ef05867d277d799d67e6a59978e76db9973 (patch) | |
tree | 9500e220694a8db8c9e071bd5fa1121473a21a50 /desktop | |
parent | d6897d38e38a2a8094f5e19866fd8c14557e69fb (diff) |
desktop/wmmon: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/wmmon/wmmon.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/desktop/wmmon/wmmon.SlackBuild b/desktop/wmmon/wmmon.SlackBuild index 3a36773e34d0..502557f639c2 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 |