build(deps): use a single submodule for ffmpeg (#1952)
This commit is contained in:
@@ -45,28 +45,7 @@ sha256sums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname"
|
||||
# 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
|
||||
git submodule update --recursive --init
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
Reference in New Issue
Block a user