--- a/PKGBUILD +++ b/PKGBUILD @@ -38,7 +38,6 @@ 'libcap' 'libdrm' 'libevdev' - 'libmfx' 'libpipewire' 'libpulse' 'libva' @@ -58,6 +57,9 @@ 'which' ) +# Intel Media SDK is unavailable on ARM. +depends_x86_64=('libmfx') + makedepends=( 'appstream' 'appstream-glib' @@ -72,6 +74,9 @@ 'shaderc' ) +# Use distro Vulkan headers instead of the bundled SDK's recursive sources. +makedepends_aarch64=('vulkan-headers') + checkdepends=( 'gcovr' 'imagemagick' @@ -119,7 +124,13 @@ prepare() { cd "$pkgname" - git submodule update --recursive --init --depth 1 + if [[ $CARCH == aarch64 ]]; then + 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 --depth 1 + fi } build() { @@ -149,6 +160,10 @@ -D SUNSHINE_PUBLISHER_ISSUE_URL='https://app.lizardbyte.dev/support' ) + if [[ $CARCH == aarch64 ]]; then + _cmake_options+=(-D SUNSHINE_SYSTEM_VULKAN_HEADERS=ON) + fi + if [[ "${_use_cuda::1}" != "t" ]]; then _cmake_options+=(-DSUNSHINE_ENABLE_CUDA=OFF -DCUDA_FAIL_ON_MISSING=OFF) else