summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo <willysr@slackware-id.org>2012-04-20 09:06:40 -0400
committer dsomero <xgizzmo@slackbuilds.org>2012-04-20 09:06:40 -0400
commite076947ac24865601cabc0481331bf9271e79024 (patch)
tree4ad314477467429949a7e8153b58219212e1c70d /games
parentbf66ade17b186f01a679f181ca388f8b8966e967 (diff)
downloadslackbuilds-e076947ac24865601cabc0481331bf9271e79024.tar.gz
slackbuilds-e076947ac24865601cabc0481331bf9271e79024.tar.xz
games/wesnoth: Updated for version 1.10.2.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/wesnoth/README14
-rw-r--r--games/wesnoth/terrain_translation.patch16
-rw-r--r--games/wesnoth/wesnoth.SlackBuild7
-rw-r--r--games/wesnoth/wesnoth.info6
4 files changed, 31 insertions, 12 deletions
diff --git a/games/wesnoth/README b/games/wesnoth/README
index 58fd4b3869..01ccb28251 100644
--- a/games/wesnoth/README
+++ b/games/wesnoth/README
@@ -1,15 +1,15 @@
The Battle for Wesnoth is a turn-based strategy game set in a fantasy
-environment, where players can build an army of different kinds of
-fighters from races such as elves, dwarves, orcs, trolls, and more.
+environment, where players can build an army of different kinds of
+fighters from races such as elves, dwarves, orcs, trolls, and more.
-It is a turn-based strategy game on a hexgrid with several challenging
-single-player campaigns and different kind of multi-player matches.
+It is a turn-based strategy game on a hexgrid with several challenging
+single-player campaigns and different kind of multi-player matches.
-If you want to compile the wesnothd server and campaign server you can
+If you want to compile the wesnothd server and campaign server you can
run the script as follows: SERVER=yes ./wesnoth.SlackBuild
-please note that the server UID and GID are not required at compile time but
-will be required at runtime under the UID/GID specified in the buildscript.
+please note that the server UID and GID are not required at compile time but
+will be required at runtime under the UID/GID specified in the buildscript.
You can create the user and group for the wesnoth server as follows:
# groupadd -g 229 wesnoth
diff --git a/games/wesnoth/terrain_translation.patch b/games/wesnoth/terrain_translation.patch
new file mode 100644
index 0000000000..504ee96213
--- /dev/null
+++ b/games/wesnoth/terrain_translation.patch
@@ -0,0 +1,16 @@
+--- src/terrain_translation.cpp.orig 2012-04-13 06:55:53.256767111 +0700
++++ src/terrain_translation.cpp 2012-04-13 06:56:38.718095606 +0700
+@@ -800,7 +800,12 @@
+ tcode[1] = ((terrain.base & 0x00FF0000) >> 16);
+ tcode[2] = ((terrain.base & 0x0000FF00) >> 8);
+ tcode[3] = (terrain.base & 0x000000FF);
+-
++ tcode[4] = 0;
++ tcode[5] = 0;
++ tcode[6] = 0;
++ tcode[7] = 0;
++ tcode[8] = 0;
++
+ if(terrain.overlay != NO_LAYER) {
+ tcode[4] = '^'; //the layer separator
+ tcode[5] = ((terrain.overlay & 0xFF000000) >> 24);
diff --git a/games/wesnoth/wesnoth.SlackBuild b/games/wesnoth/wesnoth.SlackBuild
index a0a8cbc036..3e6ab3e659 100644
--- a/games/wesnoth/wesnoth.SlackBuild
+++ b/games/wesnoth/wesnoth.SlackBuild
@@ -3,7 +3,7 @@
# SlackBuild script for "Battle of Wesnoth".
# Copyright 2007-2010 Michiel van Wessem, Manchester, United Kingdom
-# Copyright 2010-2012 Willy Sudiarto Raharjo (willysr@slackware-id.org)
+# Copyright 2010-2012 Willy Sudiarto Raharjo, Jogja, Indonesia (willysr@slackware-id.org)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=wesnoth
-VERSION=${VERSION:-1.10.1}
+VERSION=${VERSION:-1.10.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -77,6 +77,9 @@ cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
+# This patch should be enabled when you used GCC 4.7.0 or above
+# patch -p0 < $CWD/terrain_translation.patch
+
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
diff --git a/games/wesnoth/wesnoth.info b/games/wesnoth/wesnoth.info
index b769dae101..4d485bffe7 100644
--- a/games/wesnoth/wesnoth.info
+++ b/games/wesnoth/wesnoth.info
@@ -1,8 +1,8 @@
PRGNAM="wesnoth"
-VERSION="1.10.1"
+VERSION="1.10.2"
HOMEPAGE="http://www.wesnoth.org"
-DOWNLOAD="http://nchc.dl.sourceforge.net/project/wesnoth/wesnoth-1.10/wesnoth-1.10.1/wesnoth-1.10.1.tar.bz2"
-MD5SUM="a2ac2d629d4e3e5fc7e7e48f935d9960"
+DOWNLOAD="http://nchc.dl.sourceforge.net/project/wesnoth/wesnoth-1.10/wesnoth-1.10.2/wesnoth-1.10.2.tar.bz2"
+MD5SUM="61f93437ba13a27a048e5ee2ee63736a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Willy Sudiarto Raharjo"