aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:04:39 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:04:39 -0400
commit1c00cdbed2010cf87a14649f0a994f2454706761 (patch)
tree9b2ebaff29918f936625f39323df97a188878a9a
parent45e339643001c7a389ed59741b79a7126a49b948 (diff)
games/pysolfc: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
-rw-r--r--games/pysolfc/pysolfc.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/games/pysolfc/pysolfc.SlackBuild b/games/pysolfc/pysolfc.SlackBuild
index 9347dd69bf16c..83c3e7981a44f 100644
--- a/games/pysolfc/pysolfc.SlackBuild
+++ b/games/pysolfc/pysolfc.SlackBuild
@@ -25,12 +25,21 @@
PRGNAM=PySolFC
PKGNAM=pysolfc
VERSION=${VERSION:-1.1}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CARDSETS=$PRGNAM-Cardsets-$VERSION
+# 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-$PKGNAM