The required capability could be added automatically with an install script (https://wiki.archlinux.org/title/PKGBUILD#install).
Alternatively, one can use a pacman hook:
Create a /usr/local/bin/setcap-sunshine.sh
file:
#!/usr/bin/env sh
sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))
Create /etc/pacman.d/hooks/sunshine.hook
:
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = sunshine
[Action]
Description = Add cap_sys_admin capability to sunshine.
When = PostTransaction
Depends = libcap
Exec = /usr/local/bin/setcap-sunshine.sh
Pinned Comments
xiota commented on 2024-07-17 01:54 (UTC) (edited on 2024-07-17 01:56 (UTC) by xiota)
Switched to default to
cuda
disabled (no nvenc) becausecuda
is a heavy package and Nvidia users are minority on Linux.Nvidia users, install
cuda
manually before building or run as_build_cuda=t makepkg
(method to pass variables to AUR helpers may vary).xiota commented on 2024-07-09 23:41 (UTC) (edited on 2024-07-27 10:27 (UTC) by xiota)
Comments here are for matters related to this AUR package only. Discussion of upstream issues should take place upstream. The upstream link is in package details.
For those concerned about "losing" upstream support for AUR, such support had already officially been discontinued long ago. The relevant comment from 2023-02-21 is pinned.
Before reporting issues to upstream, confirm them with git checkout or upstream binaries. Properly confirmed bugs do not need to mention AUR.
Package-specific issues should be reported here.
<deleted-account> commented on 2023-02-21 02:33 (UTC)
In order to simplify maintenance of Sunshine, we have decided to drop support of this AUR package, since we are now publishing a pre-compiled pkg.tar.zst package as well as the PKGBUILD file to our GitHub releases. If someone would like to take over the AUR it would be ideal if there is communication with us in our Discord. Please reach out if you're interested. Thanks!