diff options
author | John D Jones III | 2015-06-16 16:23:12 -0600 |
---|---|---|
committer | John D Jones III | 2015-06-16 16:23:12 -0600 |
commit | bca74f769fda111125af889c8b5fa64253fe2a3d (patch) | |
tree | 55a529d89219dbe8f8880618ab3a1cf918127c16 /ttf-vista-fonts.install | |
download | aur-bca74f769fda111125af889c8b5fa64253fe2a3d.tar.gz |
Initial import
Diffstat (limited to 'ttf-vista-fonts.install')
-rw-r--r-- | ttf-vista-fonts.install | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ttf-vista-fonts.install b/ttf-vista-fonts.install new file mode 100644 index 000000000000..7d5202312c1b --- /dev/null +++ b/ttf-vista-fonts.install @@ -0,0 +1,33 @@ +post_install() { + echo -n "rebuilding font cache... " + fc-cache /usr/share/fonts/TTF + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +post_upgrade() { + echo -n "rebuilding font cache... " + fc-cache /usr/share/fonts/TTF + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +pre_remove() { + /bin/true +} + +# arg 1: the old package version +post_remove() { + echo -n "rebuilding font cache... " + fc-cache /usr/share/fonts/TTF + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +op=$1 +shift + +$op $* |