- Edited
Upon further investigation towards todays updates, specifically gtk-update-icon-cache, I noticed something oddly similar to systemd service files [0] compared to pacman hook files, and the way it goes further than just sysusers and tmpfiles [1]. So it is not clear to me how pacman applys hooks without systemd. This brings me to the integration of hooks into offical arch packages [2], which accounts for more than 2,000+ packages. Pacopts seems to somewhat mitigate this, However it needs to take hooks into account. applysys for example will only check /usr/lib/sysusers.d, however it doesn't check /usr/share/libalpm/hooks or /etc/pacman.d/hooks. and applytmp will only work if the files are in /usr/lib/tmpfiles.d/ (if you have this path defined in /etc/pacman.conf by NoExtract, you might as well remove it from there because it won't work otherwise).
This is just part 1 of pacman hooks, I strongly suspect that part 2 will have more systemd involvement [3]
[0] https://www.freedesktop.org/software/systemd/man/systemd.service.html
[1] https://wiki.archlinux.org/index.php/DeveloperWiki:Pacman_Hooks
[2] https://www.archlinux.org/todo/hooks-part-1/
[3] https://bbs.archlinux.org/viewtopic.php?id=214835
References:
http://obarun.org/forum/viewtopic.php?id=77
This is just part 1 of pacman hooks, I strongly suspect that part 2 will have more systemd involvement [3]
[0] https://www.freedesktop.org/software/systemd/man/systemd.service.html
[1] https://wiki.archlinux.org/index.php/DeveloperWiki:Pacman_Hooks
[2] https://www.archlinux.org/todo/hooks-part-1/
[3] https://bbs.archlinux.org/viewtopic.php?id=214835
References:
http://obarun.org/forum/viewtopic.php?id=77