From be38856ef8dac717aef0a260fb3f9da7ef5d7960 Mon Sep 17 00:00:00 2001 From: Paper Date: Wed, 20 Jan 2021 22:43:56 +0100 Subject: [PATCH] lutris: fix crash, add missing dependency --- srcpkgs/lutris/patches/fix-dxvk.patch | 22 ++++++++++++++++++++++ srcpkgs/lutris/template | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/lutris/patches/fix-dxvk.patch diff --git a/srcpkgs/lutris/patches/fix-dxvk.patch b/srcpkgs/lutris/patches/fix-dxvk.patch new file mode 100644 index 00000000000..1a7c135d06e --- /dev/null +++ b/srcpkgs/lutris/patches/fix-dxvk.patch @@ -0,0 +1,22 @@ +upstream: yes +--- lutris/util/wine/dxvk.py ++++ lutris/util/wine/dxvk.py +@@ -53,7 +53,8 @@ def version(self): + """Return version of DXVK (latest known version if not provided)""" + if self._version: + return self._version +- return self.versions[0] ++ if self.versions: ++ return self.versions[0] + + @property + def dxvk_path(self): +@@ -62,6 +62,8 @@ def dxvk_path(self): + + def load_dxvk_versions(self): + versions_path = os.path.join(self.base_dir, "dxvk_versions.json") ++ if not system.path_exists(versions_path): ++ return [] + with open(versions_path, "r") as dxvk_version_file: + dxvk_versions = [v["tag_name"] for v in json.load(dxvk_version_file)] + return dxvk_versions diff --git a/srcpkgs/lutris/template b/srcpkgs/lutris/template index 6a059013032..c8008f65f8f 100644 --- a/srcpkgs/lutris/template +++ b/srcpkgs/lutris/template @@ -1,12 +1,12 @@ # Template file for 'lutris' pkgname=lutris version=0.5.8.2 -revision=2 +revision=3 build_style=meson hostmakedepends="gettext python3-setuptools python3-gobject gtk+3-devel" depends="python3-dbus python3-gobject python3-yaml python3-evdev python3-Pillow pciutils cabextract gtk+3 xrandr unzip p7zip gnome-desktop python3-requests webkit2gtk - glxinfo python3-distro python3-lxml" + glxinfo python3-distro python3-lxml python3-magic" short_desc="Open gaming platform for managing games in a unified way" maintainer="Jan Wey. " license="GPL-3.0-or-later"