From 1c00cdbed2010cf87a14649f0a994f2454706761 Mon Sep 17 00:00:00 2001 From: David Somero Date: Fri, 4 Jun 2010 01:04:39 -0400 Subject: games/pysolfc: Misc automated cleanups. Signed-off-by: David Somero --- games/pysolfc/pysolfc.SlackBuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'games') diff --git a/games/pysolfc/pysolfc.SlackBuild b/games/pysolfc/pysolfc.SlackBuild index 9347dd69bf..83c3e7981a 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 -- cgit v1.2.3