# Template file for 'gamescope' pkgname=gamescope version=3.17.0 revision=1 _glm_hash=0af55ccecd98d4e5a8d1fad7de25ba429d60e863 _stb_hash=5736b15f7ea0ffb08dd38af21067c314d6a3aae9 _vkroots_hash=20733b938267dcac60f6ac105dbb757f9cc8df9c _reshade_hash=696b14cd6006ae9ca174e6164450619ace043283 _spirv_hash=d790ced752b5bfc06b6988baadef6eb2d16bdf96 _libdisplay_info_hash=c67a3e9bedb05ab61c7443704a1a107e76254595 _libliftoff_hash=8b08dc1c14fd019cc90ddabe34ad16596b0691f4 _wlroots_hash=d783533489e1f75d6886c2ab5c5960090ef268f8 build_style=meson configure_args="-Denable_openvr_support=false" hostmakedepends="glslang pkg-config wayland-devel hwids" makedepends="catch2 pipewire-devel SPIRV-Headers libX11-devel libXdamage-devel libXcomposite-devel libXrender-devel libXxf86vm-devel libXtst-devel libXres-devel libXmu-devel libdrm-devel vulkan-loader-devel libxkbcommon-devel libcap-devel LuaJIT-devel SDL2-devel benchmark-devel pixman-devel libinput-devel libseat-devel libavif-devel libei-devel xcb-util-wm-devel wayland-protocols xorg-server-xwayland" 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/g-truc/glm/archive/${_glm_hash}.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 https://github.com/KhronosGroup/SPIRV-Headers/archive/${_spirv_hash}.tar.gz https://gitlab.freedesktop.org/emersion/libdisplay-info/-/archive/${_libdisplay_info_hash}/libdisplay-info-${_libdisplay_info_hash}.tar.gz https://gitlab.freedesktop.org/emersion/libliftoff/-/archive/${_libliftoff_hash}/libliftoff-${_libliftoff_hash}.tar.gz https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/${_wlroots_hash}/wlroots-${_wlroots_hash}.tar.gz" checksum="77d96c2c68c7a98dd4e0b951407fa23dfb4fc30632d5ee740471c7d612f288e0 e7f187d83523f505eb38dd25d297ea6c0d4ed856d733e808f18253f5a8fa88a0 d00921d49b06af62aa6bfb97c1b136bec661dd11dd4eecbcb0da1f6da7cedb4c 863ee36f80faa84d28e1f73b588f6f52d391d210267938a57f7a8fa14b9fd1ce 3aa6feda7773cc8ffa8fb012fe95e6207c776101e29198d0e0d34a0c5e339f6a 90141b3f6261dba643fe546d56b4539e61fe40e307c5c3b9985ea9fa0622ac3f 34f2109f3ba5a56f4e12062210261c98214f32b5568684311aa029da518bf2fd 8de28aee6f90f47b7fc7037dcd2360166197c0b5d2033f3afdbd34f2ea1bf216 d4d7c5f4ff5729d5eff33859b58ab7ced812aca54367b75ecbdaf9aae448fff6" skip_extraction="${_glm_hash}.tar.gz ${_stb_hash}.tar.gz ${_vkroots_hash}.tar.gz ${_reshade_hash}.tar.gz ${_spirv_hash}.tar.gz libdisplay-info-${_libdisplay_info_hash}.tar.gz libliftoff-${_libliftoff_hash}.tar.gz wlroots-${_wlroots_hash}.tar.gz" # wlroots and libliftoff fail to build because of these warnings CFLAGS="-Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=unused-result -Wno-error=return-type" if [ "$XBPS_CHECK_PKGS" ]; then # The libliftoff test suite checks for NDEBUG and fails if it is defined, # even if all other tests would pass CFLAGS+=" -UNDEBUG" fi post_extract() { vsrcextract -C subprojects/glm "${_glm_hash}.tar.gz" cp subprojects/packagefiles/glm/meson.build subprojects/glm 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" vsrcextract -C thirdparty/SPIRV-Headers "${_spirv_hash}.tar.gz" vsrcextract -C subprojects/libdisplay-info "libdisplay-info-${_libdisplay_info_hash}.tar.gz" vsrcextract -C subprojects/libliftoff "libliftoff-${_libliftoff_hash}.tar.gz" vsrcextract -C subprojects/wlroots "wlroots-${_wlroots_hash}.tar.gz" } post_patch() { # libdisplay-info tests require currently unpackaged edid-decode vsed -i subprojects/libdisplay-info/meson.build -e "s/subdir('test')//" echo "${version}" > voidlinux_pkg_version.txt } post_install() { vlicense LICENSE rm ${DESTDIR}/usr/include/vkroots.h rm ${DESTDIR}/usr/lib/pkgconfig/vkroots.pc rm ${DESTDIR}/usr/include/libliftoff.h rm ${DESTDIR}/usr/lib/pkgconfig/libliftoff.pc rm ${DESTDIR}/usr/lib/libliftoff.a rm -r ${DESTDIR}/usr/include/wlroots* rm ${DESTDIR}/usr/lib/pkgconfig/wlroots*.pc rm ${DESTDIR}/usr/lib/libwlroots*.a rm ${DESTDIR}/usr/bin/di-edid-decode rm -r ${DESTDIR}/usr/include/libdisplay-info rm ${DESTDIR}/usr/lib/pkgconfig/libdisplay-info.pc rm ${DESTDIR}/usr/lib/libdisplay-info.a }