diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-20 14:56:50 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-21 01:49:31 -0500 |
commit | cd26fa934df9619a6a17b372e16dadefe8f27cfb (patch) | |
tree | a6e629b4e69aff4eb4cc804c3e4d617c7da243bc | |
parent | 156912a64a5003eaf13858ac7a280d346e9eac62 (diff) | |
download | slackbuilds-cd26fa934df9619a6a17b372e16dadefe8f27cfb.tar.gz |
system/xosd: Miscellaneous cleanups.
-rw-r--r-- | system/xosd/xosd.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/system/xosd/xosd.SlackBuild b/system/xosd/xosd.SlackBuild index 7627251e25..d49aad46e7 100644 --- a/system/xosd/xosd.SlackBuild +++ b/system/xosd/xosd.SlackBuild @@ -7,10 +7,19 @@ PRGNAM=xosd VERSION=2.2.14 -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) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM |