summaryrefslogtreecommitdiff
path: root/libraries/pychart
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:10:00 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:10:00 -0400
commitc9f437a5e62a674868072dc51f8a70a70b196d97 (patch)
tree2ca9815417972248417c44cdac2ee4f321440b2f /libraries/pychart
parente00d5ca271d436808b821868a272ad6a314442a2 (diff)
downloadslackbuilds-c9f437a5e62a674868072dc51f8a70a70b196d97.tar.gz
libraries/pychart: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/pychart')
-rw-r--r--libraries/pychart/pychart.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/pychart/pychart.SlackBuild b/libraries/pychart/pychart.SlackBuild
index 89939ad77f..03ad6f93c7 100644
--- a/libraries/pychart/pychart.SlackBuild
+++ b/libraries/pychart/pychart.SlackBuild
@@ -24,12 +24,21 @@
PRGNAM=pychart
VERSION=1.39
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM=PyChart
+# 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