Hi,
You have exactly the same problem with fonts and fc-cache.
The current idiom (which works very well) is :
- fc-cache call in fontconfig postinstall scriptlet
- conditional fc-cache in font packages
postinstall scriptlet (using /bin/sh):
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache /usr/share/fonts
fi
postuninstall scriptlet (using /bin/sh):
if [ "$1" = "0" ]; then
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache /usr/share/fonts
fi
fi
This works well, catches 100% of the cases, does not force fontconfig
dep in font packages (apps that need the fonts but use another font
rendering tech are happy), does not sprinkle triggers everywhere where
they're difficult to get rid of.
This model should be followed by every package needing optional indexing
provided by another packager IMHO
Regards,
--
Nicolas Mailhot
Attachment:
signature.asc
Description: Ceci est une partie de message numériquement signée