@chivras: libpdfium-nojs is a complex package and some of the approaches taken to make the build work can cause problems with AUR helpers, including pamac.
I cannot guess what causes the build to fail for you, but my tests using the standard AUR build process with vanilla makepkg run fine.
As convenient as AUR helpers are, I would recommend that you read the documentation on how to manually build AUR packages on the Arch Linux Wiki and follow this process to make the build work.
Since you seem to get the same error with a different package, you might also want to file a bug against pamac.
Pinned Comments
selmf commented on 2021-05-24 11:20 (UTC)
Important: This package depends on libicuuc and needs to be rebuild if the icu package is updated on your system!