From 1a683e5188dad70c87c2094fdfd625d8c711a0ed Mon Sep 17 00:00:00 2001 From: SpidFightFR Date: Sun, 8 Oct 2023 08:26:02 +0000 Subject: [PATCH] gzdoom: add patch for correct pk3 file search location by default. --- srcpkgs/gzdoom/patches/pk3location.patch | 22 ++++++++++++++++++++++ srcpkgs/gzdoom/template | 2 +- 2 files changed, 23 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..6bde3b8841144 --- /dev/null +++ b/srcpkgs/gzdoom/patches/pk3location.patch @@ -0,0 +1,22 @@ +diff --git a/src/gameconfigfile.cpp b/src/gameconfigfile.cpp +index 0b3931e..d3f3863 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); +@@ -143,6 +145,8 @@ FGameConfigFile::FGameConfigFile () + SetValueForKey ("Path", "$HOME/" GAME_DIR, true); + SetValueForKey ("Path", "$HOME/.local/share/games/doom", true); + SetValueForKey ("Path", SHARE_DIR, true); ++ // 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"