aboutsummaryrefslogtreecommitdiff
path: root/system/xosd/xosd.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-20 14:56:50 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-21 01:49:31 -0500
commitcd26fa934df9619a6a17b372e16dadefe8f27cfb (patch)
treea6e629b4e69aff4eb4cc804c3e4d617c7da243bc /system/xosd/xosd.SlackBuild
parent156912a64a5003eaf13858ac7a280d346e9eac62 (diff)
system/xosd: Miscellaneous cleanups.
Diffstat (limited to 'system/xosd/xosd.SlackBuild')
-rw-r--r--system/xosd/xosd.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/system/xosd/xosd.SlackBuild b/system/xosd/xosd.SlackBuild
index 7627251e2576c..d49aad46e7c01 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