From d299730800cedfa9b1a9b9832e2b075dcf71e885 Mon Sep 17 00:00:00 2001 From: Julio Sanz <59529624+juliosanz@users.noreply.github.com> Date: Sun, 18 Jan 2026 20:37:32 +0100 Subject: [PATCH] build(arch): enhanced arch support for linux build script (#4595) --- docs/building.md | 13 ++++++++++++- scripts/linux_build.sh | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/building.md b/docs/building.md index 56febbce..67b2066c 100644 --- a/docs/building.md +++ b/docs/building.md @@ -50,9 +50,20 @@ pkg install -y \ #### Linux Dependencies vary depending on the distribution. You can reference our [linux_build.sh](https://github.com/LizardByte/Sunshine/blob/master/scripts/linux_build.sh) script for a list of -dependencies we use in Debian-based and Fedora-based distributions. Please submit a PR if you would like to extend the +dependencies we use in Debian-based, Fedora-based and Arch-based distributions. Please submit a PR if you would like to extend the script to support other distributions. +##### KMS Capture +If you are using KMS, patching the Sunshine binary with `setcap` is required. Some post-install scripts handle this. If building +from source and using the binary directly, this will also work: + +```bash +sudo cp build/sunshine /tmp +sudo setcap cap_sys_admin+p /tmp/sunshine +sudo getcap /tmp/sunshine +sudo mv /tmp/sunshine build/sunshine +``` + ##### CUDA Toolkit Sunshine requires CUDA Toolkit for NVFBC capture. There are two caveats to CUDA: diff --git a/scripts/linux_build.sh b/scripts/linux_build.sh index 520b6164..055e7796 100755 --- a/scripts/linux_build.sh +++ b/scripts/linux_build.sh @@ -157,6 +157,7 @@ dependencies=() function add_arch_deps() { dependencies+=( + 'appstream-glib' 'avahi' 'base-devel' 'cmake'