Unable to build scangearmp2

Just as upstream Arch Linux - the use of AUR is unsupported.

You are supposed to know how to troubleshoot a PKGBUILD script.

If you have issues with a custom script use the AUR page for info.

https://aur.archlinux.org/packages?K=scangearmp2