New comment by Hoshpak on void-packages repository https://github.com/void-linux/void-packages/pull/23601#issuecomment-661289627 Comment: > In the case of qemu there are just two files which make the hook fail. I > don't know if there are packages with a lot of files which would require > exceptions though. > > yes there are, i remember some microctrontroller firmware development package > had to work around the hook really hard Then it is definitely beneficial to be able to exclude directories. I split it into two variable `ignore_usrshare_files` and `ignore_usrshare_dirs` in the lates iteration so we can either ignore individual files or the directory containing the files.