summarylogtreecommitdiffstats
path: root/neuropol-ttf.install
diff options
context:
space:
mode:
authorTeddy Schmitz2016-11-17 16:23:39 +0800
committerTeddy Schmitz2016-11-17 16:23:39 +0800
commitc9b3a9b2ee165e6722b91c22f766360a1b389541 (patch)
tree0b361020badb6393a6ace87d8568f074f013da61 /neuropol-ttf.install
downloadaur-neuropol-ttf.tar.gz
Initial Commit
Diffstat (limited to 'neuropol-ttf.install')
-rw-r--r--neuropol-ttf.install23
1 files changed, 23 insertions, 0 deletions
diff --git a/neuropol-ttf.install b/neuropol-ttf.install
new file mode 100644
index 000000000000..32e89da42971
--- /dev/null
+++ b/neuropol-ttf.install
@@ -0,0 +1,23 @@
+post_install() {
+ echo -n "rebuilding font cache... "
+ fc-cache -fs > /dev/null
+ 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."
+}
+
+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."
+}