summarylogtreecommitdiffstats
path: root/updatefont.install
diff options
context:
space:
mode:
authorMarcos Heredia2015-06-09 11:30:48 -0300
committerMarcos Heredia2015-06-09 11:30:48 -0300
commitcceaffe806904792553209c4e436ca8c84c6ddba (patch)
tree0eb4da2a34a899709f6b27c68f4f2e810f3bdfab /updatefont.install
downloadaur-cceaffe806904792553209c4e436ca8c84c6ddba.tar.gz
Initial import
Diffstat (limited to 'updatefont.install')
-rw-r--r--updatefont.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/updatefont.install b/updatefont.install
new file mode 100644
index 000000000000..7c7762f6887c
--- /dev/null
+++ b/updatefont.install
@@ -0,0 +1,16 @@
+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
+}