diff options
Diffstat (limited to 'source/xap/xgames/xgames.SlackBuild')
-rwxr-xr-x | source/xap/xgames/xgames.SlackBuild | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/source/xap/xgames/xgames.SlackBuild b/source/xap/xgames/xgames.SlackBuild index e2514f81..e313d468 100755 --- a/source/xap/xgames/xgames.SlackBuild +++ b/source/xap/xgames/xgames.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2011 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,8 +21,17 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. VERSION=0.3 -ARCH=${ARCH:-x86_64} -BUILD=${BUILD:-2} +BUILD=${BUILD:-4} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi NUMJOBS=${NUMJOBS:-" -j7 "} @@ -128,8 +137,8 @@ cp -a README.linux $PKG/usr/doc/xgames-$VERSION/xroach # Build xsnow: cd $TMP -tar xvf $CWD/xsnow-1.40.tar.gz || exit 1 -cd xsnow-1.40 || exit 1 +tar xvf $CWD/xsnow-1.42.tar.gz || exit 1 +cd xsnow-1.42 || exit 1 xmkmf make $NUMJOBS || make || exit 1 cat xsnow > $PKG/usr/bin/xsnow |