diff options
Diffstat (limited to 'games/notpacman/notpacman.SlackBuild')
-rw-r--r-- | games/notpacman/notpacman.SlackBuild | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/games/notpacman/notpacman.SlackBuild b/games/notpacman/notpacman.SlackBuild index cd8657ec6c..5eaf7551ef 100644 --- a/games/notpacman/notpacman.SlackBuild +++ b/games/notpacman/notpacman.SlackBuild @@ -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 |