summarylogtreecommitdiffstats
path: root/updatefont.install
diff options
context:
space:
mode:
authorMarcos Heredia2015-06-09 11:28:27 -0300
committerMarcos Heredia2015-06-09 11:28:27 -0300
commitac068b6d53b11d55e6fffd9025f5b5e8606a7bfc (patch)
tree22e7d84c3d4b487f1460c5bc09ea4aee4d0476c3 /updatefont.install
downloadaur-ac068b6d53b11d55e6fffd9025f5b5e8606a7bfc.tar.gz
Initial import
Diffstat (limited to 'updatefont.install')
-rw-r--r--updatefont.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/updatefont.install b/updatefont.install
new file mode 100644
index 00000000000..43e14fbd0cf
--- /dev/null
+++ b/updatefont.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}