lutris: fix crash, add missing dependency
This commit is contained in:
parent
7ac00e994e
commit
fd134b6069
2 changed files with 24 additions and 2 deletions
22
srcpkgs/lutris/patches/fix-dxvk.patch
Normal file
22
srcpkgs/lutris/patches/fix-dxvk.patch
Normal file
|
@ -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
|
|
@ -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. <janwey.git@gmail.com>"
|
||||
license="GPL-3.0-or-later"
|
||||
|
|
Loading…
Reference in a new issue