From 37907f40b32a419582b636a58992f4781e011d7d Mon Sep 17 00:00:00 2001 From: Helmut Pozimski Date: Mon, 21 Jan 2019 16:26:13 +0100 Subject: [PATCH] unknown-horizons: explicitely generate atlases --- .../patches/remove_atlas_generation.patch | 11 +++++++++++ srcpkgs/unknown-horizons/template | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/unknown-horizons/patches/remove_atlas_generation.patch diff --git a/srcpkgs/unknown-horizons/patches/remove_atlas_generation.patch b/srcpkgs/unknown-horizons/patches/remove_atlas_generation.patch new file mode 100644 index 0000000000..71c962d4df --- /dev/null +++ b/srcpkgs/unknown-horizons/patches/remove_atlas_generation.patch @@ -0,0 +1,11 @@ +--- setup.py 2019-01-21 16:11:35.644513578 +0100 ++++ setup.py 2019-01-21 16:11:50.592513273 +0100 +@@ -228,8 +228,6 @@ + rmtree(os.path.join("content", "lang")) + copytree(os.path.join("build", "mo"), os.path.join("content", "lang")) + +- self.generate_atlases(2048) +- + + build.sub_commands.append(('build_i18n', None)) + diff --git a/srcpkgs/unknown-horizons/template b/srcpkgs/unknown-horizons/template index baddcfc264..bcdda2d68e 100644 --- a/srcpkgs/unknown-horizons/template +++ b/srcpkgs/unknown-horizons/template @@ -1,7 +1,7 @@ # Template file for 'unknown-horizons' pkgname=unknown-horizons version=2019.1 -revision=1 +revision=2 noarch=yes build_style=python3-module hostmakedepends="python3 intltool git python3-Pillow" @@ -12,6 +12,10 @@ homepage="http://unknown-horizons.org" distfiles="https://github.com/unknown-horizons/unknown-horizons/archive/${version}.tar.gz" checksum=a417fd3d342212fd190e4f21be82ef13c10e1ed7c288fbbe46e46200cf3de4d8 +pre_install() { + python3 horizons/engine/generate_atlases.py 2048 +} + post_install() { vlicense doc/LICENSE }