blob: fa6bc6bdfeabbe48e2cda5794317908ac35adae3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
# Maintainer: detiam <dehe_tian@outlook.com>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Giancarlo Razzolini <grazzolini@archlinux.org>
# Contributor: Samuel "scrufulufugus" Monson <smonson@irbash.net>
# Contributor: PedroHLC <root@pedrohlc.com>
pkgname=gamescope-nvidia-git
_pkgname=gamescope
pkgver=3.16.1.r38.gef1e8dbe
pkgrel=1
pkgdesc='SteamOS session compositing window manager (NVIDIA patch)'
arch=(x86_64)
url=https://github.com/sharkautarch/gamescope/tree/nvidia-fix
license=(
'BSD-2-Clause'
'BSD-3-Clause'
'LicenseRef-Reshade')
install="$_pkgname.install"
depends=(
'libpipewire'
'libcap'
'libxcomposite'
'libxdamage'
'libxkbcommon'
'libxmu'
'libxres'
'libxxf86vm'
'lcms2'
'libei'
'libxi'
'libavif'
'libdecor'
'seatd' # wlroots deps
'xcb-util-errors' # wlroots deps
'sdl2'
'vulkan-icd-loader'
'xorg-xwayland')
optdepends=(
'mangohud: for option "--mangoapp"')
makedepends=(
'git'
'glm' # tested work version v1.0.1
'glslang'
'meson'
'cmake'
'ninja'
'updpkgsrcs'
'vulkan-headers'
'wayland-protocols')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=(
"$_pkgname::git+https://github.com/ValveSoftware/gamescope.git"
"subprojects|stb::git+https://github.com/nothings/stb.git#commit=5736b15f7ea0ffb08dd38af21067c314d6a3aae9"
"reverts-bd722f7.patch") # https://github.com/sharkautarch/gamescope/tree/nvidia-fix
prepare() {
for patch in "${source[@]}"; do
patch="${patch%%::*}"
patch="${patch##*/}"
if [[ $patch == *.patch ]]; then
msg2 "Applying $patch"
patch --no-backup-if-mismatch -d "$_pkgname" -Np1 -i "$srcdir/$patch"
fi
done
cd $_pkgname
msg2 'Retrieving git build dependencies...'
local outmsg='first'; until [[ -z $outmsg ]]; do
if ! outmsg=$( { eval "$(updpkgsrcs echoGitCMDForSubModule force)" 1>/dev/null; } 2>&1 ); then
updpkgsrcs updateBuildScriptForSubModule || exit $?
fi
done; unset outmsg
msg2 'Retrieving meson build dependencies...'
sed -i "s#^url =.*#url = file://$srcdir/subprojects|stb#" subprojects/stb.wrap
meson subprojects download stb
}
pkgver() {
git -C "$_pkgname" describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
arch-meson "$_pkgname" build \
--wrap-mode=nodownload \
--auto-features=enabled \
-Dbenchmark=disabled \
-Dpipewire=enabled
meson compile -C build
}
package() {
DESTDIR="$pkgdir" meson install -C build --skip-subprojects
install -Dm 644 "$_pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$_pkgname/"
}
# Auto generated by 'updpkgsrcs', do not edit.
source+=('thirdparty|SPIRV-Headers::git+https://github.com/KhronosGroup/SPIRV-Headers/#commit=d790ced752b5bfc06b6988baadef6eb2d16bdf96'
'subprojects|vkroots::git+https://github.com/Joshua-Ashton/vkroots#commit=5106d8a0df95de66cc58dc1ea37e69c99afc9540'
'subprojects|openvr::git+https://github.com/ValveSoftware/openvr.git#commit=ebd425331229365dc3ec42d1bb8b2cc3c2332f81'
'src|reshade::git+https://github.com/Joshua-Ashton/reshade#commit=696b14cd6006ae9ca174e6164450619ace043283'
'subprojects|libdisplay-info::git+https://gitlab.freedesktop.org/emersion/libdisplay-info#commit=66b802d05b374cd8f388dc6ad1e7ae4f08cb3300'
'subprojects|libliftoff::git+https://gitlab.freedesktop.org/emersion/libliftoff.git#commit=8b08dc1c14fd019cc90ddabe34ad16596b0691f4'
'subprojects|wlroots::git+https://github.com/Joshua-Ashton/wlroots.git#commit=4bc5333a2cbba0b0b88559f281dbde04b849e6ef') # End
sha512sums=('SKIP'
'53ff8f7a4ae987b84398bf6b35bccb5aec5337d4e57660f599776eb62f692aa40be671e2c456f24de16c07d27272431b807ca3fd4a97d297bb2a8f35c3df665f'
'52a7c6670c2ceb2110b1a374db152abf8697e731665ceed9b651f94f95300579d6488c931a29c11d08bf2dc11af5859b0189757a6ebcc4ec494d10c65a088b27'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
# vim: ts=2 sw=2 et:
|