Fix Sunshine AUR sync and ARM submodule checkout

This commit is contained in:
Ryan Hughes committed 2026-09-08 23:53:38 -04:00
1 parent 60a6b0f0c7
commit 4023356d3f
4 files changed
+47 -53

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
{
"source": "aur",
"upstream_commit": "3c38fe4064f8c8a49b9d2420468c29f812074d3f"
"upstream_commit": "42bc63ecad9478b35338d34ed923887bdbd81b29"
}
@@ -1,50 +1,49 @@
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -36,7 +36,6 @@ depends=(
@@ -38,7 +38,6 @@
'libcap'
'libdrm'
'libevdev'
- 'libmfx'
'libnotify'
'libpipewire'
'libpulse'
@@ -53,6 +52,10 @@ depends=(
'libva'
@@ -58,6 +57,9 @@
'which'
)
+depends_x86_64=(
+ 'libmfx'
+)
+# Intel Media SDK is unavailable on ARM.
+depends_x86_64=('libmfx')
+
makedepends=(
'appstream'
'appstream-glib'
@@ -69,6 +72,10 @@ makedepends=(
@@ -72,6 +74,9 @@
'shaderc'
)
+makedepends_aarch64=(
+ 'vulkan-headers'
+)
+# Use distro Vulkan headers instead of the bundled SDK's recursive sources.
+makedepends_aarch64=('vulkan-headers')
+
checkdepends=(
'gcovr'
)
@@ -111,7 +118,12 @@ if [ -n "${optdepends+x}" ]; then
'imagemagick'
@@ -119,7 +124,13 @@
prepare() {
cd "$pkgname"
- git submodule update --recursive --init
- git submodule update --recursive --init --depth 1
+ if [[ $CARCH == aarch64 ]]; then
+ git submodule update --init
+ git -C third-party/moonlight-common-c submodule update --init enet
+ git submodule update --init --depth 1
+ # Fetch Moonlight's nested sources without pulling in the bundled SDK.
+ git -C third-party/moonlight-common-c submodule update --recursive --init --depth 1
+ else
+ git submodule update --recursive --init
+ git submodule update --recursive --init --depth 1
+ fi
}
# Backport https://github.com/LizardByte/Sunshine/commit/060b6b07d376e9ef4c4ce4a5c6d648d08fe0eab9
patch -Np1 -i "${srcdir}/2026.516.143833-060b6b07-remove-setuptools-from-glad-dependencies.patch"
@@ -145,6 +157,10 @@ build() {
build() {
@@ -149,6 +160,10 @@
-D SUNSHINE_PUBLISHER_ISSUE_URL='https://app.lizardbyte.dev/support'
)