diff options
author | B. Watson <yalhcru@gmail.com> | 2017-03-01 02:27:29 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-04 07:26:37 +0700 |
commit | a1d9976b46a398b965de6e73955f060069e35725 (patch) | |
tree | d63e5f5f81534118cbdbbc3811771e70e86bb11d /games/commandergenius/commandergenius.SlackBuild | |
parent | c19d3dd2b4441df919ad9d021234633e41520ad9 (diff) |
games/commandergenius: Updated for version 1.9.8.7beta.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/commandergenius/commandergenius.SlackBuild')
-rw-r--r-- | games/commandergenius/commandergenius.SlackBuild | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/games/commandergenius/commandergenius.SlackBuild b/games/commandergenius/commandergenius.SlackBuild index c05627ef7696b..0323dab4fa7fa 100644 --- a/games/commandergenius/commandergenius.SlackBuild +++ b/games/commandergenius/commandergenius.SlackBuild @@ -6,10 +6,16 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. -# 20170122 bkw: updated for 1.9.8.1beta +# 20170301 bkw: +# - updated for 1.9.8.7beta +# - fix the build for the case where SDL2 is installed but SDL2_image is not. +# - update man page (level= option, correct author's full name) +# - use github long-form URL + +# 20170122 bkw: updated for 1.9.8.1beta. PRGNAM=commandergenius -VERSION=${VERSION:-1.9.8.1beta} +VERSION=${VERSION:-1.9.8.7beta} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,7 +65,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$SRCVER -tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz || tar xvf $CWD/v$SRCVER.tar.gz +tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz cd $SRCNAM-$SRCVER chown -R root:root . @@ -70,10 +76,13 @@ find -L . -type d -a -exec chmod 755 '{}' '+' # placate desktop-file-validate sed -i 's,Application;,,' share/$DESKTOP +# Apply upstream fix for building with SDL-1.2 +patch -p1 < $CWD/a67003b_sdl_12_compatibility.diff + # SDL 2 is optional. I prefer it, others may not. SDLOPT="-DUSE_SDL2=no" SDLVER=1 -if sdl2-config --version 2>/dev/null && [ "${SDL2:-yes}" != "no" ]; then +if pkg-config --exists sdl2 SDL2_image && [ "${SDL2:-yes}" != "no" ]; then SDLOPT="-DUSE_SDL2=yes" SDLVER=2 fi |