diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:04:39 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:04:39 -0400 |
commit | 1c00cdbed2010cf87a14649f0a994f2454706761 (patch) | |
tree | 9b2ebaff29918f936625f39323df97a188878a9a /games | |
parent | 45e339643001c7a389ed59741b79a7126a49b948 (diff) |
games/pysolfc: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/pysolfc/pysolfc.SlackBuild | 11 |
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 |