From 61da51aa526aef3daf5eb9b14b011e0ec40cdb0b Mon Sep 17 00:00:00 2001 From: SpidFightFR Date: Sun, 11 Feb 2024 14:07:35 +0100 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 | 17 ++++++++++++++ 3 files changed, 54 insertions(+) create mode 100755 srcpkgs/vkdoom/patches/vkdoom-fix-build.patch create mode 100755 srcpkgs/vkdoom/patches/vkdoom-fix-pk3.patch create mode 100755 srcpkgs/vkdoom/template diff --git a/srcpkgs/vkdoom/patches/vkdoom-fix-build.patch b/srcpkgs/vkdoom/patches/vkdoom-fix-build.patch new file mode 100755 index 00000000000000..f25d3971684f6a --- /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 100755 index 00000000000000..08494c1ba5a690 --- /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..6fe82e1 100644 +--- a/src/gameconfigfile.cpp ++++ b/src/gameconfigfile.cpp +@@ -123,6 +123,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/vkdoom", true); + SetValueForKey ("Path", "/usr/share/games/doom", true); + #endif + } +@@ -145,6 +147,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/vkdoom", true); + SetValueForKey ("Path", "/usr/share/games/doom", true); + #endif + SetValueForKey ("Path", "$DOOMWADDIR", true); diff --git a/srcpkgs/vkdoom/template b/srcpkgs/vkdoom/template new file mode 100755 index 00000000000000..14dd9b29c6f244 --- /dev/null +++ b/srcpkgs/vkdoom/template @@ -0,0 +1,17 @@ +# Template file for 'vkdoom' +pkgname=vkdoom +version=1 +version_dev=nightly +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/${version_dev}.tar.gz" +checksum="ce5399142451d3e18a85574770d58d82b83ba78f05e80130317bf7846130095c" +nocross=yes