pachooks icon indicating copy to clipboard operation
pachooks copied to clipboard

Misc hooks + fixes

Open eli-schwartz opened this issue 9 years ago • 3 comments

  • A couple hooks I've been playing with:
    • vimdoc.hook
    • gtk-update-icon-cache.hook
  • Based on the trick I used in gtk-update-icon-cache, I've also merged the mkfontdir/mkfontscale OTF/TTF hooks and made them apply to all fonts.
  • update-mime-database should use a relative path, in case people are using an alternative --root.
  • Also do a slightly better glob for install-info files, which also leaves out these pesky .*\.png(\.gz)? files (mainly owned by gnutls on my system). Really? I didn't know texinfo did images... but either way it is a waste of time to try indexing them, so why bother? :laughing:
  • Add descriptions to the hooks, for eye candy.

eli-schwartz avatar Mar 07 '16 04:03 eli-schwartz

Good catch, but not all info pages end in *.gz (for example, see Arch's maxima package).

Huh, I didn't realize that actually happens. Apparently the PKGBUILD specifies !zipman. I guess usr/share/info/*info* would work just as well though.

libalpm chroots into the installation root before running hooks or install scripts; this should not be necessary.

Perhaps I was confused by the fact that install scriptlets always seem to use relative paths when doing the same thing (although now I come to think of it, they sometimes use absolute paths for other things). If that isn't a requirement, is one or the other an official style preference?

I agree that it would be nice to not have to do these per font type, but I'm not sure these triggers are correct. Not all directories under usr/share/fonts/ contain fonts.

I will happily admit to knowing next to nothing about fonts. :smile: Is there a specific set of directories that do other things and can be excluded? Or maybe just use awk or sed to get the last directory on a file trigger...

eli-schwartz avatar Mar 07 '16 15:03 eli-schwartz

Huh, I didn't realize that actually happens. Apparently the PKGBUILD specifies !zipman. I guess usr/share/info/info would work just as well though.

I would use usr/share/info/*.info*

Perhaps I was confused by the fact that install scriptlets always seem to use relative paths when doing the same thing (although now I come to think of it, they sometimes use absolute paths for other things). If that isn't a requirement, is one or the other an official style preference?

My preference is for absolute paths.

I will happily admit to knowing next to nothing about fonts. :smile: Is there a specific set of directories that do other things and can be excluded? Or maybe just use awk or sed to get the last directory on a file trigger...

I don't know enough about fonts to answer that question, which is why I went with the original conservative approach.

andrewgregory avatar Mar 17 '16 17:03 andrewgregory

So I've deleted the mkfontdir/mkfontscale changes for now, as well as the unneeded changes to update-mime-database. I've pushed a new set of install-info hooks.

The mkfontdir/mkfontscale commit is still available at eli-schwartz@1f5b1b3c423aa29e908089bab0cd1cdfeab8662e for reference, and I will open an issue for it in case anyone has suggestions.

eli-schwartz avatar Mar 18 '16 14:03 eli-schwartz