From cbddf34f58b4098f420d4138a1bf6ca6837d7e33 Mon Sep 17 00:00:00 2001 From: Dexter Gaon-Shatford Date: Wed, 24 Jan 2024 11:37:33 -0500 Subject: [PATCH 1/2] New package: libliftoff-0.4.1 --- common/shlibs | 1 + srcpkgs/libliftoff-devel | 1 + srcpkgs/libliftoff/template | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 120000 srcpkgs/libliftoff-devel create mode 100644 srcpkgs/libliftoff/template diff --git a/common/shlibs b/common/shlibs index 71f172740e5c6..44aa2bb5cc6d9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4272,3 +4272,4 @@ libsqsh.so.1 libsqsh-1.3.0_1 libunicode.so.0.4 libunicode-0.4.0_1 libunicode_ucd.so.0.4 libunicode-0.4.0_1 libunicode_loader.so.0.4 libunicode-0.4.0_1 +libliftoff.so.0 libliftoff-0.4.1_1 diff --git a/srcpkgs/libliftoff-devel b/srcpkgs/libliftoff-devel new file mode 120000 index 0000000000000..977a28aa78d3c --- /dev/null +++ b/srcpkgs/libliftoff-devel @@ -0,0 +1 @@ +libliftoff \ No newline at end of file diff --git a/srcpkgs/libliftoff/template b/srcpkgs/libliftoff/template new file mode 100644 index 0000000000000..2d0a183494699 --- /dev/null +++ b/srcpkgs/libliftoff/template @@ -0,0 +1,36 @@ +# Template file for 'libliftoff' +pkgname=libliftoff +version=0.4.1 +revision=1 +build_style=meson +hostmakedepends="pkg-config" +makedepends="libdrm-devel" +short_desc="Lightweight KMS plane library" +maintainer="Dexter Gaon-Shatford " +license="MIT" +homepage="https://gitlab.freedesktop.org/emersion/libliftoff" +distfiles="https://gitlab.freedesktop.org/emersion/libliftoff/-/archive/v${version}/libliftoff-v${version}.tar.gz" +checksum=44ec5cfdd0df040d1023d4d6a48b23c31f21ce61ee2347da9e1ca244fe24dd1c + +CFLAGS="-Wno-error=unused-but-set-variable" + +# The provided test suite fails when NDEBUG is defined, but Meson does not +# provide a simple way to exclude single tests, so this is required. +do_check() { + test_list=$(meson test -C build --list) + meson test -C build ${test_list//check_ndebug} +} + +post_install() { + vlicense LICENSE +} + +libliftoff-devel_package() { + depends="libliftoff>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +} From 98343a684a07794ddc2b6a758f1b2b6e55d888b8 Mon Sep 17 00:00:00 2001 From: Dexter Gaon-Shatford Date: Wed, 24 Jan 2024 11:40:06 -0500 Subject: [PATCH 2/2] New package: gamescope-3.14.0 --- srcpkgs/gamescope/template | 55 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 srcpkgs/gamescope/template diff --git a/srcpkgs/gamescope/template b/srcpkgs/gamescope/template new file mode 100644 index 0000000000000..1d0febe9f5a59 --- /dev/null +++ b/srcpkgs/gamescope/template @@ -0,0 +1,55 @@ +# Template file for 'gamescope' +pkgname=gamescope +version=3.14.0 +revision=1 +_stb_hash=5736b15f7ea0ffb08dd38af21067c314d6a3aae9 +_vkroots_hash=d5ef31abc7cb5c69aee4bcb67b10dd543c1ff7ac +_reshade_hash=9fdbea6892f9959fdc18095d035976c574b268b7 +build_style=meson +configure_args="-Denable_openvr_support=false --force-fallback-for=" +hostmakedepends="glslang pkg-config" +makedepends="pipewire-devel Vulkan-Headers SPIRV-Headers libX11-devel + libXdamage-devel libXcomposite-devel libXrender-devel libXxf86vm-devel + libXtst-devel libXres-devel libdrm-devel vulkan-loader wayland-protocols + libxkbcommon-devel libcap-devel SDL2-devel hwids wlroots0.17-devel + libliftoff-devel glm libXmu-devel libdisplay-info-devel benchmark-devel + libavif-devel" +depends="xorg-server-xwayland" +short_desc="SteamOS session compositing window manager" +maintainer="Dexter Gaon-Shatford " +license="BSD-2-Clause, BSD-3-Clause, MIT" +homepage="https://github.com/ValveSoftware/gamescope" +distfiles="https://github.com/ValveSoftware/gamescope/archive/refs/tags/${version}.tar.gz + https://github.com/nothings/stb/archive/${_stb_hash}.tar.gz + https://github.com/Joshua-Ashton/vkroots/archive/${_vkroots_hash}.tar.gz + https://github.com/Joshua-Ashton/reshade/archive/${_reshade_hash}.tar.gz" +checksum="f7cca4ef1786a34496d436cf233f24d28746da7a0f29d3d3f645ac29f1009381 + d00921d49b06af62aa6bfb97c1b136bec661dd11dd4eecbcb0da1f6da7cedb4c + b4eca5edca75355ea1443ad96fd59b0a407f6a2ce17ef5a8f9849c05fc10155f + 165726ad21fbfc221c0363e40b597834068a416a11a1204ae2ac6d13ec161035" +skip_extraction="${_stb_hash}.tar.gz + ${_vkroots_hash}.tar.gz + ${_reshade_hash}.tar.gz" + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" wayland-devel" +fi + +post_extract() { + vsrcextract -C subprojects/stb ${_stb_hash}.tar.gz + cp subprojects/packagefiles/stb/meson.build subprojects/stb + vsrcextract -C subprojects/vkroots ${_vkroots_hash}.tar.gz + vsrcextract -C src/reshade ${_reshade_hash}.tar.gz +} + +post_patch() { + vendor_spirv="../thirdparty/SPIRV-Headers/include/spirv/unified1" + system_spirv="${XBPS_CROSS_BASE}/usr/include/spirv/unified1" + vsed -i src/meson.build -e "s|${vendor_spirv}|${system_spirv}|" +} + +post_install() { + vlicense LICENSE + vlicense subprojects/vkroots/LICENSES/MIT.txt LICENSE.vkroots + vlicense src/reshade/LICENSE.md LICENSE.reshade +}