Skip to content

Instantly share code, notes, and snippets.

@sharkautarch
Last active March 24, 2024 16:36
Show Gist options
  • Save sharkautarch/2ddc9a1c9eed3306fde8375659032d3f to your computer and use it in GitHub Desktop.
Save sharkautarch/2ddc9a1c9eed3306fde8375659032d3f to your computer and use it in GitHub Desktop.
test_w_no_lut pkgbuild
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
# Contributor: Samuel "scrufulufugus" Monson <smonson@irbash.net>
# Contributor: PedroHLC <root@pedrohlc.com>
pkgname=gamescope
pkgver=3.14.21
pkgrel=1
pkgdesc='SteamOS session compositing window manager'
arch=(x86_64)
url=https://github.com/ValveSoftware/gamescope
license=(BSD)
depends=(
gcc-libs
glibc
glm
libavif
libcap.so
libdisplay-info.so
libdrm
libliftoff.so
libpipewire-0.3.so
libvulkan.so
libx11
libxcb
libxcomposite
libxdamage
libxext
libxfixes
libxkbcommon.so
libxmu
libxrender
libxres
libxtst
libxxf86vm
sdl2
vulkan-icd-loader
wayland
xorg-server-xwayland
)
makedepends=(
benchmark
git
glslang
meson
ninja
vulkan-headers
wayland-protocols
)
source=(
git+https://github.com/sharkautarch/gamescope.git
git+https://github.com/Joshua-Ashton/reshade.git
git+https://github.com/KhronosGroup/SPIRV-Headers.git
)
b2sums=('SKIP'
'SKIP'
'SKIP')
options=(!strip)
prepare() {
cd $srcdir/$pkgname
git checkout test_w_no_lut
git submodule update --init
meson subprojects download
}
build() {
cd $srcdir/$pkgname
LDFLAGS=""
CXXFLAGS=""
CC=gcc CXX=g++ meson setup build --wipe --reconfigure --buildtype=release -Dc_args="-g1 -Wno-error=unused-but-set-variable -Wno-error=unused-variable -fipa-pta -fdelete-dead-exceptions -march=native -Wno-error=stringop-overflow -fno-omit-frame-pointer" -Dc_link_args="-g1 -Wno-error=unused-but-set-variable -Wno-error=unused-variable -fdelete-dead-exceptions -fipa-pta -march=native -Wl,--strip-discarded,--gc-sections,--relax,-z,start-stop-gc,-z,pack-relative-relocs,-O1 -Wno-error=stringop-overflow -fno-omit-frame-pointer" -Dcpp_args="-g1 -fnothrow-opt -fno-threadsafe-statics -fimplicit-constexpr -fno-enforce-eh-specs -fno-check-new -Wno-error=unused-but-set-variable -Wno-error=unused-variable -fdelete-dead-exceptions -fipa-pta -march=native -fno-omit-frame-pointer" -Dcpp_link_args="-g1 -fno-threadsafe-statics -fimplicit-constexpr -fnothrow-opt -fno-check-new -fno-enforce-eh-specs -Wno-error=unused-but-set-variable -Wno-error=unused-variable -fdelete-dead-exceptions -march=native -fipa-pta -Wl,--strip-discarded,--gc-sections,--relax,-z,start-stop-gc,-z,pack-relative-relocs,-O1 -fno-omit-frame-pointer" -Db_lto=true -Db_ndebug=true -Db_sanitize=none -Denable_openvr_support=false \
-Dforce_fallback_for=stb,wlroots,vkroots \
-Dpipewire=enabled
CC=gcc CXX=g++ meson compile -C build
}
package() {
cd $srcdir/$pkgname
CC=gcc CXX=g++ DESTDIR="${pkgdir}" meson install -C build
install -Dm 644 gamescope/LICENSE -t "${pkgdir}"/usr/share/licenses/gamescope/
}
# vim: ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment