I am curious as to what triggers post-transaction hooks in pacman and whether it is possible to see what hooks are being called for a particular package and with what parameters.
For example, I just installed a custom-build of Wine and there are some errors relating to one of the post-transaction hooks:
:: Running post-transaction hooks...
(1/2) Registering binary formats...
/usr/lib/rc/sh/binfmt.sh: line 33: /proc/sys/fs/binfmt_misc/: Is a directory
/usr/lib/rc/sh/binfmt.sh: line 35: echo: write error: Invalid argument
binfmt: invalid entry on line 3 of `/usr/lib/binfmt.d/wine.conf'
error: command failed to execute correctly
(2/2) Updating the desktop file MIME type cache...
Where can I find exactly what is being called for that binary format hook? Are the hook calls specified somewhere in the PKGBUILD file?