Add the .INSTALL script needed for kmsgrab to work

This also removes the standalone PKGBUILD artifact because
our PKGBUILD has external dependencies now.
This commit is contained in:
Cameron Gutman 2024-03-09 11:55:22 -06:00
parent 74ce047a4b
commit cb4bfaa2f4
5 changed files with 17 additions and 18 deletions

View File

@ -29,6 +29,7 @@ elseif (UNIX)
# configure the arch linux pkgbuild
if(${SUNSHINE_CONFIGURE_PKGBUILD})
configure_file(packaging/linux/Arch/PKGBUILD PKGBUILD @ONLY)
configure_file(packaging/linux/Arch/sunshine.install sunshine.install @ONLY)
endif()
# configure the flatpak manifest

View File

@ -78,6 +78,7 @@ _MAKE
WORKDIR /build/sunshine/pkg
RUN mv /build/sunshine/build/PKGBUILD .
RUN mv /build/sunshine/build/sunshine.install .
# namcap and build PKGBUILD file
RUN <<_PKGBUILD
@ -91,7 +92,6 @@ _PKGBUILD
FROM scratch as artifacts
COPY --link --from=sunshine-build /build/sunshine/pkg/PKGBUILD /PKGBUILD
COPY --link --from=sunshine-build /build/sunshine/pkg/sunshine*.pkg.tar.zst /sunshine.pkg.tar.zst
FROM sunshine-base as sunshine

View File

@ -38,7 +38,6 @@ Install
=========================================== ============== ============== ================================
Package CUDA Version Min Driver CUDA Compute Capabilities
=========================================== ============== ============== ================================
PKGBUILD User dependent User dependent User dependent
sunshine.AppImage 11.8.0 450.80.02 35;50;52;60;61;62;70;75;80;86;90
sunshine.pkg.tar.zst 11.8.0 450.80.02 35;50;52;60;61;62;70;75;80;86;90
sunshine_{arch}.flatpak 12.0.0 525.60.13 50;52;60;61;62;70;75;80;86;90
@ -90,21 +89,7 @@ Install
./sunshine.AppImage --remove
.. tab:: Archlinux PKGBUILD
#. Open terminal and run the following code.
.. code-block:: bash
wget https://github.com/LizardByte/Sunshine/releases/latest/download/PKGBUILD
makepkg -fi
Uninstall:
.. code-block:: bash
pacman -R sunshine
.. tab:: Archlinux pkg
.. tab:: Arch Linux Package
#. Open terminal and run the following code.
@ -205,7 +190,7 @@ Install
sudo dnf remove sunshine
The `deb`, `rpm`, `Flatpak` and `AppImage` packages should handle these steps automatically.
The `deb`, `rpm`, `zst`, `Flatpak` and `AppImage` packages should handle these steps automatically.
Third party packages may not.
Sunshine needs access to `uinput` to create mouse and gamepad events.

View File

@ -8,6 +8,7 @@ pkgdesc="@PROJECT_DESCRIPTION@"
arch=('x86_64' 'aarch64')
url=@PROJECT_HOMEPAGE_URL@
license=('GPL3')
install=sunshine.install
depends=('avahi'
'boost-libs'

View File

@ -0,0 +1,12 @@
do_setcap() {
setcap cap_sys_admin+p $(readlink -f $(which sunshine))
}
post_install() {
do_setcap
}
post_upgrade() {
do_setcap
}