summaryrefslogtreecommitdiff
path: root/desktop/gtk-chtheme
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:01:05 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:01:05 -0400
commit37514d0f33819c3fe39a44dc3d076086910b637a (patch)
tree4ead5bdd8f15c757e001b940a0e50a1b44c94303 /desktop/gtk-chtheme
parentbec3227cd638361a8053f73623afc196cc525f20 (diff)
downloadslackbuilds-37514d0f33819c3fe39a44dc3d076086910b637a.tar.gz
desktop/gtk-chtheme: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/gtk-chtheme')
-rw-r--r--desktop/gtk-chtheme/gtk-chtheme.SlackBuild14
1 files changed, 12 insertions, 2 deletions
diff --git a/desktop/gtk-chtheme/gtk-chtheme.SlackBuild b/desktop/gtk-chtheme/gtk-chtheme.SlackBuild
index 5cf1aace12..20533203d3 100644
--- a/desktop/gtk-chtheme/gtk-chtheme.SlackBuild
+++ b/desktop/gtk-chtheme/gtk-chtheme.SlackBuild
@@ -26,10 +26,20 @@
PRGNAM=gtk-chtheme
VERSION=0.3.1
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG=_SBo}
-CWD=`pwd`
+
+# 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
OUTPUT=${OUTPUT:-/tmp}