games/notpacman: Fix ARCH.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2014-05-01 09:26:38 +07:00 committed by Willy Sudiarto Raharjo
parent 86fa9f1f0d
commit 8789e3231e
2 changed files with 4 additions and 28 deletions

View file

@ -15,36 +15,17 @@
PRGNAM=notpacman
VERSION=${VERSION:-1.0.4}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
# *.love files are just zip files full of lua code, they're cross-platform
ARCH=noarch
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
# For those keeping score at home, *.love files are actually zip files
@ -54,11 +35,6 @@ set -e
ZIPFILE=$PRGNAM-source.zip
PAYLOAD=not_pacman.love
# if file downloaded with wget or anything that doesn't respect
# content-disposition:
DLNAME="dl.php?file=notpacman-1004%2Fnotpacman-source.zip"
[ -e "$DLNAME" ] && mv "$DLNAME" $ZIPFILE
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP

View file

@ -1,7 +1,7 @@
PRGNAM="notpacman"
VERSION="1.0.4"
HOMEPAGE="http://stabyourself.net/notpacman/"
DOWNLOAD="http://stabyourself.net/dl.php?file=notpacman-1004/notpacman-source.zip"
DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/notpacman-source.zip"
MD5SUM="a7f00ac3b1c8cb94bfa07b711b076223"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""