From c014f22e1a3ccbb63f0b69809be4438160619bb7 Mon Sep 17 00:00:00 2001 From: SpidFightFR Date: Sat, 7 Oct 2023 10:34:06 +0000 Subject: [PATCH] gzdoom: add patch for correct pk3 file search location by default. --- srcpkgs/gzdoom/patches/pk3location.patch | 13 +++++++++++++ srcpkgs/gzdoom/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/gzdoom/patches/pk3location.patch diff --git a/srcpkgs/gzdoom/patches/pk3location.patch b/srcpkgs/gzdoom/patches/pk3location.patch new file mode 100644 index 0000000000000..c7cbf2e751d87 --- /dev/null +++ b/srcpkgs/gzdoom/patches/pk3location.patch @@ -0,0 +1,13 @@ +diff --git a/src/gameconfigfile.cpp b/src/gameconfigfile.cpp +index 0b3931e..86bb3f8 100644 +--- a/src/gameconfigfile.cpp ++++ b/src/gameconfigfile.cpp +@@ -121,6 +121,8 @@ FGameConfigFile::FGameConfigFile () + // Arch Linux likes them in /usr/share/doom + // Debian likes them in /usr/share/games/doom + // I assume other distributions don't do anything radically different ++ // Adds the correct locations of the pk3file for Voidlinux - Patch by SpidFightFR ++ SetValueForKey ("Path", "/usr/local/share/gzdoom", true); + SetValueForKey ("Path", "/usr/local/share/doom", true); + SetValueForKey ("Path", "/usr/local/share/games/doom", true); + SetValueForKey ("Path", "/usr/share/doom", true); diff --git a/srcpkgs/gzdoom/template b/srcpkgs/gzdoom/template index 37b30f359fde1..d6928d148a436 100644 --- a/srcpkgs/gzdoom/template +++ b/srcpkgs/gzdoom/template @@ -1,7 +1,7 @@ # Template file for 'gzdoom' pkgname=gzdoom version=4.11.0 -revision=1 +revision=2 archs="~i686* ~arm*" build_style=cmake configure_args="-DINSTALL_PK3_PATH=share/gzdoom -DDYN_GTK=OFF -DDYN_OPENAL=OFF"