summarylogtreecommitdiffstats
path: root/ttf.install
diff options
context:
space:
mode:
authornoonov2015-06-08 20:15:13 +0900
committernoonov2015-06-08 20:15:13 +0900
commit6fbe924ce4db8905a338a84620af932f8ad551e9 (patch)
tree7b2a7c2e862e7f76e8e2fe32abad2b25bcd4707c /ttf.install
downloadaur-6fbe924ce4db8905a338a84620af932f8ad551e9.tar.gz
Initial import
Diffstat (limited to 'ttf.install')
-rw-r--r--ttf.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/ttf.install b/ttf.install
new file mode 100644
index 00000000000..16db3c130c7
--- /dev/null
+++ b/ttf.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f -s >/dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}