mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-02-22 03:40:43 +00:00
Skip irrelevant submodules when building on Arch (#817)
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
parent
c29c917474
commit
bf4ed899d9
@ -22,7 +22,28 @@ sha256sums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname"
|
||||
git submodule update --recursive --init
|
||||
# Skip submodules that we don't want
|
||||
if [[ $CARCH == "x86_64" ]]; then
|
||||
git -c submodule."ffmpeg-macos-x86_64".update=none \
|
||||
-c submodule."ffmpeg-windows-x86_64".update=none \
|
||||
-c submodule."ffmpeg-linux-aarch64".update=none \
|
||||
-c submodule."ffmpeg-macos-aarch64".update=none \
|
||||
submodule update --recursive --init
|
||||
elif [[ $CARCH == "aarch64" ]]; then
|
||||
git -c submodule."ffmpeg-macos-x86_64".update=none \
|
||||
-c submodule."ffmpeg-windows-x86_64".update=none \
|
||||
-c submodule."ffmpeg-linux-x86_64".update=none \
|
||||
-c submodule."ffmpeg-macos-aarch64".update=none \
|
||||
submodule update --recursive --init
|
||||
|
||||
# It's unlikely that someone could get this far on a system with an incorrect arch, but we should handle it anyway
|
||||
# Pull linux ffmpeg submodules
|
||||
else
|
||||
git -c submodule."ffmpeg-macos-x86_64".update=none \
|
||||
-c submodule."ffmpeg-windows-x86_64".update=none \
|
||||
-c submodule."ffmpeg-macos-aarch64".update=none \
|
||||
submodule update --recursive --init
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user