Add AUR PKGBUILD

This commit is contained in:
ReenigneArcher
2022-06-18 20:46:59 -04:00
parent 12a361a3d9
commit f4074341a5
9 changed files with 351 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
post_install() {
if ! getent group input > /dev/null; then
echo "Creating group input"
groupadd -r input
fi
}

View 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

View File

@@ -0,0 +1 @@
KERNEL=="uinput", GROUP="input", MODE="0660"