summaryrefslogtreecommitdiff
path: root/games/unknown-horizons
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2015-01-09 22:53:54 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-01-10 07:45:57 +0700
commit9a132a15629af2534e349964892a8555888a93b3 (patch)
tree627556475882230139bb48000a65442c63928344 /games/unknown-horizons
parentd8221c02dce39e7391b5d6f92e57b33580842cef (diff)
downloadslackbuilds-9a132a15629af2534e349964892a8555888a93b3.tar.gz
games/unknown-horizons: Updated for version 2014.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/unknown-horizons')
-rw-r--r--games/unknown-horizons/README3
-rw-r--r--games/unknown-horizons/coloroverlaycomponent.patch24
-rw-r--r--games/unknown-horizons/unknown-horizons.SlackBuild6
-rw-r--r--games/unknown-horizons/unknown-horizons.info6
4 files changed, 34 insertions, 5 deletions
diff --git a/games/unknown-horizons/README b/games/unknown-horizons/README
index 874aca480b..58d32b5d05 100644
--- a/games/unknown-horizons/README
+++ b/games/unknown-horizons/README
@@ -4,3 +4,6 @@ settlement to a strong and wealthy colony, collect taxes and
supply your inhabitants with valuable goods. Increase your
power with a well balanced economy and with strategic trade
and diplomacy.
+
+Optional: pynet (feature for multiplayer)
+ not available from SBo
diff --git a/games/unknown-horizons/coloroverlaycomponent.patch b/games/unknown-horizons/coloroverlaycomponent.patch
new file mode 100644
index 0000000000..98d862609d
--- /dev/null
+++ b/games/unknown-horizons/coloroverlaycomponent.patch
@@ -0,0 +1,24 @@
+From 405c514eab9e2abffe8d1a8912646447e6a29cfa Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Kilian=20K=C3=B6ppchen?= <kiliankoeppchen@googlemail.com>
+Date: Fri, 2 Jan 2015 22:52:54 +0100
+Subject: [PATCH] Use animationloader instead of imagemanager to
+
+retrieve images. The imagemanager isn't necessarily aware of
+the files available as animations.
+---
+ horizons/component/coloroverlaycomponent.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/horizons/component/coloroverlaycomponent.py b/horizons/component/coloroverlaycomponent.py
+index 23d138b..41bbbff 100644
+--- a/horizons/component/coloroverlaycomponent.py
++++ b/horizons/component/coloroverlaycomponent.py
+@@ -166,7 +166,7 @@ def add_overlay(self, overlay_name, z_order):
+ except TypeError:
+ # not using atlases
+ frame_length = frame_data
+- pic = horizons.globals.fife.imagemanager.load(frame_img)
++ pic = horizons.globals.fife.animationloader.load_image(frame_img, self.action_set, overlay_name, rotation)
+ frame_milliseconds = int(frame_length * 1000)
+ ov_anim.addFrame(pic, frame_milliseconds)
+ overlay = fife.OverlayColors(ov_anim)
diff --git a/games/unknown-horizons/unknown-horizons.SlackBuild b/games/unknown-horizons/unknown-horizons.SlackBuild
index 1f64f54007..b8e3b85fec 100644
--- a/games/unknown-horizons/unknown-horizons.SlackBuild
+++ b/games/unknown-horizons/unknown-horizons.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=unknown-horizons
-VERSION=${VERSION:-2013.3}
+VERSION=${VERSION:-2014.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,13 +69,15 @@ 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 {} \;
+patch -p1 < $CWD/coloroverlaycomponent.patch
+
python setup.py install --root=$PKG
mkdir -p $PKG/usr/share/applications
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/share/pixmaps/
-install -D -m644 content/$PRGNAM.xpm $PKG/usr/share/pixmaps/$PRGNAM.svg
+install -D -m644 content/gfx/uh.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/man
mv $PKG/usr/share/man/man6 $PKG/usr/man
diff --git a/games/unknown-horizons/unknown-horizons.info b/games/unknown-horizons/unknown-horizons.info
index 5f3e313d84..919730fd6b 100644
--- a/games/unknown-horizons/unknown-horizons.info
+++ b/games/unknown-horizons/unknown-horizons.info
@@ -1,8 +1,8 @@
PRGNAM="unknown-horizons"
-VERSION="2013.3"
+VERSION="2014.1"
HOMEPAGE="http://www.unknown-horizons.org"
-DOWNLOAD="https://github.com/unknown-horizons/unknown-horizons/archive/2013.3.tar.gz"
-MD5SUM="ccacd4b6de509baccd045e88324c7d2e"
+DOWNLOAD="https://github.com/unknown-horizons/unknown-horizons/archive/2014.1.tar.gz"
+MD5SUM="e308539649c7c42da34a463af7f6c946"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="fifengine PyYAML"