mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-13 20:35:40 +02:00
feat: Steamify carries the patched gamescope's recipe and patch, no download of a separate repository
Sync git.upriser.nl mirror / sync (push) Skipped
Sync git.upriser.nl mirror / sync (push) Skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KkpbsMw4rQyBsxDG6ebHK2
This commit is contained in:
1 parent
03f9e87cf2
commit
5b5181f33e
5 files changed
+149
-19
No files matched your search
@@ -0,0 +1,124 @@
|
||||
# Maintainer: theupriser
|
||||
# Based on Arch Linux's gamescope PKGBUILD (Maxime Gauduin, Giancarlo Razzolini, Sven-Hendrik Haase and contributors).
|
||||
#
|
||||
# gamescope with GBM-allocated scan-out buffers for NVIDIA (opt-in: gamescope_drm_gbm_scanout=1).
|
||||
# The patch is gamescope-gbm-scanout.patch (next to this file; see its header for where it comes from). pkgver is the gamescope
|
||||
# release the patch was made for and tested with. Kept in sync with https://github.com/theupriser/steamify-gamescope-nvidia;
|
||||
# Steamify (lib/gamescope-nvidia.sh) writes both files into a temporary folder and runs makepkg there.
|
||||
|
||||
pkgname=steamify-gamescope-nvidia
|
||||
_srcname=gamescope
|
||||
pkgver=3.16.31
|
||||
pkgrel=1
|
||||
pkgdesc='SteamOS session compositing window manager, with GBM scan-out for NVIDIA (opt-in: gamescope_drm_gbm_scanout=1)'
|
||||
arch=(x86_64)
|
||||
url=https://github.com/theupriser/steamify-gamescope-nvidia
|
||||
license=(
|
||||
BSD-2-Clause
|
||||
BSD-3-Clause
|
||||
LicenseRef-Reshade
|
||||
)
|
||||
provides=("gamescope=$pkgver")
|
||||
conflicts=(gamescope gamescope-nvidia-gbm)
|
||||
replaces=(gamescope-nvidia-gbm)
|
||||
depends=(
|
||||
glibc
|
||||
mesa
|
||||
libstdc++
|
||||
libgcc
|
||||
lcms2
|
||||
libavif
|
||||
libcap.so
|
||||
libdecor
|
||||
libdrm
|
||||
libei
|
||||
libinput
|
||||
libpipewire-0.3.so
|
||||
libx11
|
||||
libxcb
|
||||
libxcomposite
|
||||
libxcursor
|
||||
libxdamage
|
||||
libxext
|
||||
libxfixes
|
||||
libxi
|
||||
libxkbcommon.so
|
||||
libxmu
|
||||
libxrender
|
||||
libxres
|
||||
libxtst
|
||||
libxxf86vm
|
||||
luajit
|
||||
pixman
|
||||
sdl2
|
||||
seatd
|
||||
systemd-libs
|
||||
vulkan-icd-loader
|
||||
wayland
|
||||
xcb-util-errors
|
||||
xcb-util-wm
|
||||
xorg-server-xwayland
|
||||
)
|
||||
makedepends=(
|
||||
benchmark
|
||||
cmake
|
||||
git
|
||||
glslang
|
||||
meson
|
||||
ninja
|
||||
vulkan-headers
|
||||
wayland-protocols
|
||||
catch2
|
||||
)
|
||||
source=(
|
||||
gamescope::git+https://github.com/ValveSoftware/gamescope.git#commit=${pkgver}
|
||||
gamescope-gbm-scanout.patch
|
||||
git+https://gitlab.freedesktop.org/emersion/libdisplay-info.git
|
||||
git+https://gitlab.freedesktop.org/emersion/libliftoff.git
|
||||
git+https://github.com/ValveSoftware/openvr.git
|
||||
git+https://github.com/Joshua-Ashton/reshade.git
|
||||
git+https://github.com/KhronosGroup/SPIRV-Headers.git
|
||||
git+https://github.com/Joshua-Ashton/vkroots.git
|
||||
git+https://gitlab.freedesktop.org/wlroots/wlroots.git
|
||||
)
|
||||
b2sums=('SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP')
|
||||
|
||||
prepare() {
|
||||
cd gamescope
|
||||
|
||||
# GBM scan-out for NVIDIA. If it no longer applies to this gamescope version, stop here: the build must not
|
||||
# silently produce an unpatched gamescope under this package's name.
|
||||
git apply --check ../gamescope-gbm-scanout.patch || { echo "gbm patch does not apply to gamescope ${pkgver}" >&2; return 1; }
|
||||
git apply ../gamescope-gbm-scanout.patch
|
||||
|
||||
meson subprojects download
|
||||
|
||||
for submodule in src/reshade subprojects/{libdisplay-info,libliftoff,openvr,vkroots,wlroots} thirdparty/SPIRV-Headers; do
|
||||
git submodule init ${submodule}
|
||||
git config submodule.${submodule}.url ../${submodule##*/}
|
||||
done
|
||||
git -c protocol.file.allow=always submodule update
|
||||
}
|
||||
|
||||
build() {
|
||||
arch-meson gamescope build \
|
||||
-Dforce_fallback_for=glm,stb,libdisplay-info,libliftoff,vkroots \
|
||||
-Dpipewire=enabled
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="${pkgdir}" meson install -C build \
|
||||
--skip-subprojects
|
||||
install -Dm 644 gamescope/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
|
||||
}
|
||||
|
||||
# vim: ts=2 sw=2 et:
|
||||
Reference in new issue
Block a user