diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:10:04 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:10:04 -0400 |
commit | 6d5cf1600967e75e9b35e30bb4783a0cc90ea9c0 (patch) | |
tree | e70496f0207968a23557348a0bbb553dc9aec6ca /libraries | |
parent | d23cbb008f191381ed80d4cfb65a9f1b7f579654 (diff) | |
download | slackbuilds-6d5cf1600967e75e9b35e30bb4783a0cc90ea9c0.tar.gz |
libraries/pygame: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/pygame/pygame.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/pygame/pygame.SlackBuild b/libraries/pygame/pygame.SlackBuild index c2c476b978..e0242ddbe6 100644 --- a/libraries/pygame/pygame.SlackBuild +++ b/libraries/pygame/pygame.SlackBuild @@ -5,10 +5,19 @@ NAME=pygame VERSION=1.7.1 -ARCH=${ARCH:-i486} BUILD=${BUILD:-3} TAG=${TAG:-_SBo} +# 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-$NAME |