summaryrefslogtreecommitdiffstats
path: root/system/xosd
diff options
context:
space:
mode:
author Robby Workman2010-05-20 21:56:50 +0200
committer Robby Workman2010-05-21 08:49:31 +0200
commitcd26fa934df9619a6a17b372e16dadefe8f27cfb (patch)
treea6e629b4e69aff4eb4cc804c3e4d617c7da243bc /system/xosd
parent156912a64a5003eaf13858ac7a280d346e9eac62 (diff)
downloadslackbuilds-cd26fa934df9619a6a17b372e16dadefe8f27cfb.tar.gz
system/xosd: Miscellaneous cleanups.
Diffstat (limited to 'system/xosd')
-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 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