From f1a35f26849138d773f2a21ad6abbe673bfc998e Mon Sep 17 00:00:00 2001 From: SpidFightFR Date: Sun, 8 Oct 2023 09:00:45 +0000 Subject: [PATCH] New package: vkdoom-0.9. --- srcpkgs/vkdoom/patches/vkdoom-fix-build.patch | 15 +++++++++++++ srcpkgs/vkdoom/patches/vkdoom-fix-pk3.patch | 22 +++++++++++++++++++ srcpkgs/vkdoom/template | 16 ++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 srcpkgs/vkdoom/patches/vkdoom-fix-build.patch create mode 100644 srcpkgs/vkdoom/patches/vkdoom-fix-pk3.patch create mode 100644 srcpkgs/vkdoom/template diff --git a/srcpkgs/vkdoom/patches/vkdoom-fix-build.patch b/srcpkgs/vkdoom/patches/vkdoom-fix-build.patch new file mode 100644 index 0000000000000..f25d3971684f6 --- /dev/null +++ b/srcpkgs/vkdoom/patches/vkdoom-fix-build.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 76c3584..d933da6 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -277,7 +277,9 @@ else() + include ( FindPkgConfig ) + pkg_check_modules( MUSL_FTS musl-fts ) + if ( MUSL_FTS_FOUND ) +- set ( ALL_C_FLAGS "${ALL_C_FLAGS} ${MUSL_FTS_LDFLAGS}" ) ++ foreach(flags IN LISTS MUSL_FTS_LDFLAGS) ++ set ( ALL_C_FLAGS "${ALL_C_FLAGS} ${flags}" ) ++ endforeach() + else ( MUSL_FTS_FOUND ) + message (ERROR "fts_* functions not found in the system" ) + endif ( MUSL_FTS_FOUND ) diff --git a/srcpkgs/vkdoom/patches/vkdoom-fix-pk3.patch b/srcpkgs/vkdoom/patches/vkdoom-fix-pk3.patch new file mode 100644 index 0000000000000..6e8a8870c433c --- /dev/null +++ b/srcpkgs/vkdoom/patches/vkdoom-fix-pk3.patch @@ -0,0 +1,22 @@ +diff --git a/src/gameconfigfile.cpp b/src/gameconfigfile.cpp +index a054d59..b742011 100644 +--- a/src/gameconfigfile.cpp ++++ b/src/gameconfigfile.cpp +@@ -120,6 +120,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 ++ SetValueForKey ("Path", "/usr/local/share/vkdoom", true); + SetValueForKey ("Path", "/usr/local/share/doom", true); + SetValueForKey ("Path", "/usr/local/share/games/doom", true); + SetValueForKey ("Path", "/usr/share/doom", true); +@@ -142,6 +144,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 ++ SetValueForKey ("Path", "/usr/local/share/vkdoom", 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/vkdoom/template b/srcpkgs/vkdoom/template new file mode 100644 index 0000000000000..e9c3dfd34e635 --- /dev/null +++ b/srcpkgs/vkdoom/template @@ -0,0 +1,16 @@ +# Template file for 'vkdoom' +pkgname=vkdoom +version=0.9 +revision=1 +archs="~i686* ~arm*" +build_style=cmake +configure_args="-DINSTALL_PK3_PATH=share/vkdoom -DDYN_GTK=OFF -DDYN_OPENAL=OFF" +hostmakedepends="pkg-config tar xz" +makedepends="SDL2-devel gtk+3-devel libgomp-devel ZMusic-devel libopenal-devel libvpx-devel libwebp-devel" +short_desc="Advanced Doom source port focused around Vulkan and modern computers" +maintainer="SpidFightFR " +license="GPL-3.0-or-later" +homepage="https://vkdoom.org/" +distfiles="https://github.com/dpjudas/VkDoom/archive/v${version}.tar.gz" +checksum="5fbc28079ce03dc710a99ceb8480cdac4c177645757fc2bd3588bfc3ed4cb613" +nocross=yes