summarylogtreecommitdiffstats
path: root/otf.install
diff options
context:
space:
mode:
authorMasato Hashimoto2015-06-20 20:21:05 +0900
committerMasato Hashimoto2015-06-20 20:21:05 +0900
commit0a2bac0bfc4829e397ddddd2bcf7eb35ca28ad11 (patch)
tree0d0304ca587f640513e818d750e4ec38ef247508 /otf.install
downloadaur-0a2bac0bfc4829e397ddddd2bcf7eb35ca28ad11.tar.gz
Initial import
Diffstat (limited to 'otf.install')
-rw-r--r--otf.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/otf.install b/otf.install
new file mode 100644
index 000000000000..2158e59eac20
--- /dev/null
+++ b/otf.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f >/dev/null
+ mkfontscale /usr/share/fonts/OTF
+ mkfontdir /usr/share/fonts/OTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}