aboutsummaryrefslogtreecommitdiff
path: root/games/wesnoth
diff options
context:
space:
mode:
Diffstat (limited to 'games/wesnoth')
-rw-r--r--games/wesnoth/doinst.sh6
-rw-r--r--games/wesnoth/terrain_translation.patch16
-rw-r--r--games/wesnoth/wesnoth.SlackBuild10
-rw-r--r--games/wesnoth/wesnoth.info8
4 files changed, 14 insertions, 26 deletions
diff --git a/games/wesnoth/doinst.sh b/games/wesnoth/doinst.sh
index 0dfdc8b1c64f1..7d4bc766b4c52 100644
--- a/games/wesnoth/doinst.sh
+++ b/games/wesnoth/doinst.sh
@@ -1,3 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications > /dev/null 2>&1
fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/games/wesnoth/terrain_translation.patch b/games/wesnoth/terrain_translation.patch
deleted file mode 100644
index 504ee9621305c..0000000000000
--- a/games/wesnoth/terrain_translation.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- 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 a5d9bc1481fdd..a5b0655b64fef 100644
--- a/games/wesnoth/wesnoth.SlackBuild
+++ b/games/wesnoth/wesnoth.SlackBuild
@@ -4,6 +4,7 @@
# Copyright 2007-2010 Michiel van Wessem, Manchester, United Kingdom
# Copyright 2010-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2018 Edward W. Koenig, Vancouver, WA, USA
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -26,7 +27,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=wesnoth
-VERSION=${VERSION:-1.12.6}
+VERSION=${VERSION:-1.14.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -72,9 +73,6 @@ 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 -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -94,7 +92,7 @@ scons \
icondir=/usr/share/icons \
desktopdir=/usr/share/applications \
$OPT_SERVER \
- wesnoth exploder cutter wesnothd campaignd
+ wesnoth wesnothd campaignd
scons install destdir=$PKG
@@ -102,7 +100,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING INSTALL changelog copyright $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING INSTALL.md changelog.md README.md copyright $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir $PKG/install
diff --git a/games/wesnoth/wesnoth.info b/games/wesnoth/wesnoth.info
index a6ccf716b563e..a32059c33dbc6 100644
--- a/games/wesnoth/wesnoth.info
+++ b/games/wesnoth/wesnoth.info
@@ -1,10 +1,10 @@
PRGNAM="wesnoth"
-VERSION="1.12.6"
+VERSION="1.14.4"
HOMEPAGE="http://www.wesnoth.org"
-DOWNLOAD="http://downloads.sourceforge.net/wesnoth/wesnoth-1.12.6.tar.bz2"
-MD5SUM="030d445f67090ad4e4ffeeeda0e3c9c5"
+DOWNLOAD="http://downloads.sourceforge.net/wesnoth/wesnoth-1.14.4.tar.bz2"
+MD5SUM="b6b775109569c59a7aa8d6a7537b8694"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="SDL2 SDL2_image SDL2_mixer SDL2_ttf"
MAINTAINER="Edward W. Koenig"
EMAIL="kingbeowulf@gmail.com"