From b1072501aedc88f30baa98c4a899e64a4158b2ef Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 17 Oct 2019 11:04:53 +0200 Subject: [PATCH] unknown-horizons: rebuild for Python 3.8. --- srcpkgs/unknown-horizons/patches/py38.patch | 14 ++++++++++++++ srcpkgs/unknown-horizons/template | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/unknown-horizons/patches/py38.patch diff --git a/srcpkgs/unknown-horizons/patches/py38.patch b/srcpkgs/unknown-horizons/patches/py38.patch new file mode 100644 index 00000000000..59194750cd1 --- /dev/null +++ b/srcpkgs/unknown-horizons/patches/py38.patch @@ -0,0 +1,14 @@ +--- setup.py.orig ++++ setup.py +@@ -39,10 +39,7 @@ + # Ensure we are in the correct directory + os.chdir(os.path.realpath(os.path.dirname(__file__))) + +-if platform.dist()[0].lower() in ('debian', 'ubuntu'): +- executable_path = 'games' +-else: +- executable_path = 'bin' ++executable_path = 'bin' + + + # this trick is for setting RELEASE_VERSION if the code is cloned from git repository diff --git a/srcpkgs/unknown-horizons/template b/srcpkgs/unknown-horizons/template index b5fc593b744..6e81970800d 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=2 +revision=3 archs=noarch build_style=python3-module hostmakedepends="python3 intltool git python3-Pillow"