From 91d1e29b4e0a352077234d6ebdd90bd6a2ff8c24 Mon Sep 17 00:00:00 2001 From: SpidFightFR Date: Tue, 10 Oct 2023 06:41:55 +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..accf180f468d5 --- /dev/null +++ b/srcpkgs/gzdoom/patches/pk3location.patch @@ -0,0 +1,22 @@ +diff --git a/src/gameconfigfile.cpp b/src/gameconfigfile.cpp +index 0b3931e..c6856cc 100644 +--- a/src/gameconfigfile.cpp ++++ b/src/gameconfigfile.cpp +@@ -124,6 +124,8 @@ FGameConfigFile::FGameConfigFile () + SetValueForKey ("Path", "/usr/local/share/doom", true); + SetValueForKey ("Path", "/usr/local/share/games/doom", true); + SetValueForKey ("Path", "/usr/share/doom", true); ++ // Adds the correct locations of the pk3file for Voidlinux ++ SetValueForKey ("Path", "/usr/share/gzdoom", true); + SetValueForKey ("Path", "/usr/share/games/doom", true); + #endif + } +@@ -146,6 +148,8 @@ FGameConfigFile::FGameConfigFile () + SetValueForKey ("Path", "/usr/local/share/doom", true); + SetValueForKey ("Path", "/usr/local/share/games/doom", true); + SetValueForKey ("Path", "/usr/share/doom", true); ++ // Adds the correct locations of the pk3file for Voidlinux ++ SetValueForKey ("Path", "/usr/share/gzdoom", true); + SetValueForKey ("Path", "/usr/share/games/doom", true); + #endif + SetValueForKey ("Path", "$DOOMWADDIR", 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"