summarylogtreecommitdiffstats
path: root/fontconfig-git.install
diff options
context:
space:
mode:
Diffstat (limited to 'fontconfig-git.install')
-rw-r--r--[-rwxr-xr-x]fontconfig-git.install39
1 files changed, 7 insertions, 32 deletions
diff --git a/fontconfig-git.install b/fontconfig-git.install
index cc7341f128f7..52bd289fa5ef 100755..100644
--- a/fontconfig-git.install
+++ b/fontconfig-git.install
@@ -1,37 +1,12 @@
-post_install() {
- cat << _EOF
-
- Fontconfig configuration is done via /etc/fonts/conf.avail and conf.d.
- Read /etc/fonts/conf.d/README for more information.
-
- Configuration via /etc/fonts/local.conf is still possible,
- but is no longer recommended for options available in conf.avail.
-
- Main systemwide configuration should be done by symlinks
- (especially for autohinting, sub-pixel and lcdfilter):
-
- cd /etc/fonts/conf.d
- ln -s ../conf.avail/XX-foo.conf
-
- Check also https://wiki.archlinux.org/index.php/Font_Configuration
- and https://wiki.archlinux.org/index.php/Fonts.
-
-_EOF
-
- post_upgrade $1
-}
-
post_upgrade() {
- echo -n "updating font cache... "
+ # a full forced directory scan is required here
+ echo -n "Rebuilding fontconfig cache..."
/usr/bin/fc-cache -rs
- echo "done."
+ echo " done."
}
-post_remove() {
- cat << _EOF
-
- Check for dead symlinks and leftover files
- in /etc/fonts/conf.d/
-
-_EOF
+post_install() {
+ post_upgrade $1 0
}
+
+# vim:set sw=2 et: