summarylogtreecommitdiffstats
path: root/otf.install
diff options
context:
space:
mode:
authorMartin Doege2015-06-09 12:11:33 +0200
committerMartin Doege2015-06-09 12:11:33 +0200
commitcfa3e4215b60328ba63a41bb70fefe17793919b0 (patch)
tree23b129252e286036b81f242fdc92ba13b14569ea /otf.install
downloadaur-cfa3e4215b60328ba63a41bb70fefe17793919b0.tar.gz
Initial import
Diffstat (limited to 'otf.install')
-rw-r--r--otf.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/otf.install b/otf.install
new file mode 100644
index 000000000000..52655ed5cff5
--- /dev/null
+++ b/otf.install
@@ -0,0 +1,20 @@
+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
+}
+
+op=$1
+shift
+
+$op $*