diff options
Diffstat (limited to 'games/zelda-roth-se/zelda-roth-se.SlackBuild')
-rw-r--r-- | games/zelda-roth-se/zelda-roth-se.SlackBuild | 38 |
1 files changed, 4 insertions, 34 deletions
diff --git a/games/zelda-roth-se/zelda-roth-se.SlackBuild b/games/zelda-roth-se/zelda-roth-se.SlackBuild index 1d81869e40975..c6bdc328557be 100644 --- a/games/zelda-roth-se/zelda-roth-se.SlackBuild +++ b/games/zelda-roth-se/zelda-roth-se.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for Zelda Return of the Hylian Solarus Edition -# Copyright 2015-2016, 2018 Hunter Sezen California, USA +# Copyright 2015-2016, 2018-2019 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,37 +23,17 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=zelda-roth-se -VERSION=${VERSION:-1.1.0} -BUILD=${BUILD:-3} +VERSION=${VERSION:-1.2.0} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi +ARCH=noarch CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -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 -eu rm -rf $PKG @@ -69,19 +49,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Update cmake file to previous fixes from zsdx -# https://gitlab.com/solarus-games/zelda-roth-se/commit/e9b5bd907f5b50b17d65ebe2fa50760d322c537c -zcat $CWD/cmake.patch.gz | patch -p1 - -# Install icons and a desktop file. -# https://gitlab.com/solarus-games/zelda-roth-se/merge_requests/102 -zcat $CWD/share.patch.gz | patch -p1 - mkdir -p build cd build cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DSOLARUS_INSTALL_BINDIR:PATH=games \ -DSOLARUS_INSTALL_DATADIR:PATH=share/games/solarus \ |