- ERROR: A failure occurred in build()
If the previous solutions did not solve your issue, then it most likely comes from an error in the PKGBUILD and/or in the code itself. Your best chance is to check, and possibly notify, for that issue in the associated AUR page .
Even though AUR helpers such as pamac and yay automate the steps needed for building and installing an AUR package , they are not officially supported. Before notifying any issue upstream, you shall first reproduce it by building manually.