summaryrefslogtreecommitdiff
path: root/games/wargus/wargus.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2015-05-11 00:58:22 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-17 23:45:49 +0700
commitbcf51ed301fc588f912b9fb133ca1899989477cd (patch)
tree55526bcf29f9bdb2301d17570b81c791353316e4 /games/wargus/wargus.SlackBuild
parent8c78244c99769b952644e374c7b38db3991d4e8b (diff)
downloadslackbuilds-bcf51ed301fc588f912b9fb133ca1899989477cd.tar.gz
games/wargus: Updated for version 2.3.0.
Diffstat (limited to 'games/wargus/wargus.SlackBuild')
-rw-r--r--games/wargus/wargus.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/games/wargus/wargus.SlackBuild b/games/wargus/wargus.SlackBuild
index ffe80c1a80..60f39df407 100644
--- a/games/wargus/wargus.SlackBuild
+++ b/games/wargus/wargus.SlackBuild
@@ -7,7 +7,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=wargus
-VERSION=${VERSION:-2.2.7}
+VERSION=${VERSION:-2.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -53,6 +53,12 @@ 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 {} \;
+# 20150511 bkw: upstream hardcodes a particular soundfont but
+# doesn't ship it. We'll use the one from fluid-soundfont.
+sed -i \
+ 's,music/TimGM6mb.sf2,/usr/share/sounds/sf2/FluidR3_GM.sf2,' \
+ scripts/stratagus.lua
+
mkdir -p build
cd build
cmake \
@@ -74,7 +80,7 @@ CONTAINS="does not contain"
REDIST="This binary package may be redistributed."
if [ -n "$GAMEDATA" ]; then
WARTOOL=$PKG/usr/bin/wartool \
- $CWD/extract-warcraft2 \
+ sh $CWD/extract-warcraft2 \
"$GAMEDATA" \
$PKG/usr/share/games/stratagus/$PRGNAM
if [ "$?" = "0" ]; then