There is an error in the upstream configuration script.
- try a clean rebuild - yay may have an argument for that (or manually remove the yay cache folders)
- check the PKGBUILD home with AUR
- go upstream to the developer(s)
That rings a bell - is that maintained any more? gtk2 deps perhaps? python2 perhaps?
I could be very wrong though - that happens more frequently than I like to admit
I know one thing which will work - VNC over SSH
NOTE
just did a build of pyhoca-cli package
...
==> Creating package "pyhoca-cli"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: pyhoca-cli 0.6.1.2-1 (fre 01 dec 2023 18:59:54 CET)
==> Cleaning up...
...