This should get the submodules to work.
# update the submodules
cd blender
git submodule init
git config submodule.release/datafiles/locale.url "$srcdir"/blender-translations
git config submodule.release/scripts/addons.url "$srcdir"/blender-addons
git config submodule.release/scripts/addons_contrib.url "$srcdir"/blender-addons-contrib
git config submodule.source/tools.url "$srcdir"/blender-dev-tools
git -c protocol.file.allow=always submodule update
Then DISABLE_OPTIX=1 DISABLE_CUDA=1 DISABLE_USD=1 are good to pass to makepkg, but you also need these inside the build file to avoid breakages: -DWITH_CYCLES=OFF -DWITH_AUDASPACE=OFF -DWITH_OPENIMAGEIO=OFF -DWITH_OPENCOLORIO=OFF -DWITH_CODEC_FFMPEG=OFF -DWITH_IMAGE_TIFF=OFF -DWITH_OPENCOLLADA=OFF -DWITH_BOOST=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5 (alternatively you can switch target from the blender_release to blender_lite cmake script).
And last but not least don't forget about using some older python version (I used 3.9).
Pinned Comments
bartus commented on 2022-03-14 10:30 (UTC)
Sorry lads, I'm at the Polish Ukraine border helping allocate refugees. Expect no update until this hell is over, wish us luck. Have no time nor access to my rig and AUR keys to test/post updates. If you have a patch, ping me on email - I'll add you as co-maintainer. Posted with my old script - https://github.com/bartoszek/aur-post