From the [ArchWiki]https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot, you can use extra-x86_64-build in the same directory where the PKGBUILD is.
Note that when I tried building this package in a clean chroot, it did not help pass the tests so it may differ between systems.
Pinned Comments