diff options
author | yar | 2017-04-12 11:39:27 -0700 |
---|---|---|
committer | yar | 2017-04-12 11:39:27 -0700 |
commit | f8f3a10cd13c8a4b15f196c451354488a541df8d (patch) | |
tree | 1c5a2d28ad70799afb70898ccdec473af9502c1a /fontconfig-ttf.hook | |
parent | fa963a3280e1ae1e3710eb1a7cfce54185005870 (diff) | |
download | aur-f8f3a10cd13c8a4b15f196c451354488a541df8d.tar.gz |
use ALPM hook instead of install file
Diffstat (limited to 'fontconfig-ttf.hook')
-rw-r--r-- | fontconfig-ttf.hook | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fontconfig-ttf.hook b/fontconfig-ttf.hook new file mode 100644 index 000000000000..24d3596b8392 --- /dev/null +++ b/fontconfig-ttf.hook @@ -0,0 +1,11 @@ +[Trigger] +Type = File +Operation = Install +Operation = Upgrade +Operation = Remove +Target = usr/share/fonts/TTF/* + +[Action] +Description = Updating TTF fonts... +When = PostTransaction +Exec = /bin/sh -c '/usr/bin/fc-cache -fs; /usr/bin/mkfontscale usr/share/fonts/TTF; /usr/bin/mkfontdir usr/share/fonts/TTF' |