Add AUR PKGBUILD
This commit is contained in:
6
packaging/linux/aur/tmp/sunshine.install
Normal file
6
packaging/linux/aur/tmp/sunshine.install
Normal file
@@ -0,0 +1,6 @@
|
||||
post_install() {
|
||||
if ! getent group input > /dev/null; then
|
||||
echo "Creating group input"
|
||||
groupadd -r input
|
||||
fi
|
||||
}
|
||||
14
packaging/linux/aur/tmp/systemd-user-config.patch
Normal file
14
packaging/linux/aur/tmp/systemd-user-config.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
diff --git a/sunshine.service.in b/sunshine.service.in
|
||||
index c0c3828..fe45460 100644
|
||||
--- a/sunshine.service.in
|
||||
+++ b/sunshine.service.in
|
||||
@@ -2,7 +2,8 @@
|
||||
Description=Sunshine Gamestream Server for Moonlight
|
||||
|
||||
[Service]
|
||||
-ExecStart=@SUNSHINE_EXECUTABLE_PATH@
|
||||
+ExecStartPre=/bin/sh -c "test -e %E/sunshine || cp -r '@SUNSHINE_ASSETS_DIR@' '%E/sunshine'"
|
||||
+ExecStart=@SUNSHINE_EXECUTABLE_PATH@ %E/sunshine/sunshine.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
1
packaging/linux/aur/tmp/udev.rules
Normal file
1
packaging/linux/aur/tmp/udev.rules
Normal file
@@ -0,0 +1 @@
|
||||
KERNEL=="uinput", GROUP="input", MODE="0660"
|
||||
Reference in New Issue
Block a user