The Arch User Repository package libretro-super-git fails to install on my system, at least when run through yaourt in the /tmp filesystem. It builds fine, but then gets to the packaging and fakeroot process and emits a mess of errors:
==> Entering fakeroot environment… ==> Starting package()… ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/bnes_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/bsnes_libretro_accuracy.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/bsnes_libretro_balanced.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/bsnes_libretro_performance.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/desmume_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/dosbox_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/fb_alpha_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/fceumm_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/gambatte_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/genesis_plus_gx_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/mame078_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/mednafen_gba_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/mednafen_ngp_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/mednafen_pce_fast_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/mednafen_psx_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/mednafen_snes_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/mednafen_vb_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/mednafen_wswan_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/meteor_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/nestopia_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/nxengine_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/pcsx_rearmed_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/prboom_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/quicknes_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/scummvm_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/snes9x_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/snes9x_next_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/stella_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/tyrquake_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/src/libretro-super/dist/unix/vba_next_libretro.so’ -> ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’ install: cannot create regular file ‘/tmp/yaourt-tmp-chris/aur-libretro-super-git/pkg/libretro-super-git/usr/lib/libretro’: No such file or directory ==> ERROR: A failure occurred in package(). Aborting…
To make matters worse, every time makepkg is launched, all the Makefiles rebuild everything unconditionally, but that seems pretty normal for Arch source packages.