Skip to content

Commit

Permalink
New package: gamescope-3.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dexgs committed Nov 13, 2023
1 parent 9336b6e commit 7f2d5a9
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
25 changes: 25 additions & 0 deletions srcpkgs/gamescope/patches/0001-use-system-SPIRV-Headers.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 1dd1cc1fd6ee0feb7f1caf34873e67ed8568c650 Mon Sep 17 00:00:00 2001
From: Dexter Gaon-Shatford <dexter@gaonshatford.ca>
Date: Sun, 12 Nov 2023 10:24:22 -0500
Subject: [PATCH] use system SPIRV-Headers

---
src/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/meson.build b/src/meson.build
index 60d6b5a..db54651 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -94,7 +94,7 @@ reshade_src = [
reshade_include = include_directories([
'reshade/source',
'reshade/include',
- '../thirdparty/SPIRV-Headers/include/spirv/unified1'
+ '/usr/include/spirv/unified1'
])

src = [
--
2.42.0

44 changes: 44 additions & 0 deletions srcpkgs/gamescope/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Template file for 'gamescope'
pkgname=gamescope
version=3.13.0
revision=1
_stb_hash=5736b15f7ea0ffb08dd38af21067c314d6a3aae9
_vkroots_hash=d5ef31abc7cb5c69aee4bcb67b10dd543c1ff7ac
_reshade_hash=9fdbea6892f9959fdc18095d035976c574b268b7
build_style=meson
# gamescope segfaults with ndebug=true
configure_args="-Denable_openvr_support=false --force-fallback-for= -Db_ndebug=false"
hostmakedepends="pkg-config glslang"
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-devel
wayland-protocols libxkbcommon-devel libcap-devel SDL2-devel hwids
wlroots-devel libliftoff-devel glm libXmu-devel libdisplay-info-devel
benchmark-devel"
depends="xorg-server-xwayland"
short_desc="SteamOS session compositing window manager"
maintainer="Dexter Gaon-Shatford <dexter.gaonshatford@gmail.com>"
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="77f7ed35409373ab25e558fea7ad3de096efab8655115553b94e6d3d0f0700c5
d00921d49b06af62aa6bfb97c1b136bec661dd11dd4eecbcb0da1f6da7cedb4c
b4eca5edca75355ea1443ad96fd59b0a407f6a2ce17ef5a8f9849c05fc10155f
165726ad21fbfc221c0363e40b597834068a416a11a1204ae2ac6d13ec161035"

post_extract() {
mv gamescope-${version}/* .
mv -T stb-${_stb_hash} subprojects/stb
mv subprojects/packagefiles/stb/meson.build subprojects/stb
mv -T vkroots-${_vkroots_hash} subprojects/vkroots
mv -T reshade-${_reshade_hash} src/reshade
}

post_install() {
vlicense LICENSE
vlicense subprojects/vkroots/LICENSES/MIT.txt LICENSE.vkroots
vlicense src/reshade/LICENSE.md LICENSE.reshade
}

0 comments on commit 7f2d5a9

Please sign in to comment.