summarylogtreecommitdiffstats
path: root/acroread-fonts-systemwide.install
diff options
context:
space:
mode:
authorMarcel Korpel2015-06-08 23:23:55 +0200
committerMarcel Korpel2015-06-08 23:23:55 +0200
commitf480ef97c4ab0ddb48dab15961418c30c4653842 (patch)
tree01ac920ce79f4adc030f19b7d5d104622f2a4fbe /acroread-fonts-systemwide.install
downloadaur-f480ef97c4ab0ddb48dab15961418c30c4653842.tar.gz
Initial import
Diffstat (limited to 'acroread-fonts-systemwide.install')
-rw-r--r--acroread-fonts-systemwide.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/acroread-fonts-systemwide.install b/acroread-fonts-systemwide.install
new file mode 100644
index 000000000000..0476998b74dc
--- /dev/null
+++ b/acroread-fonts-systemwide.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -s >/dev/null
+ mkfontscale /usr/share/fonts/OTF
+ mkfontdir /usr/share/fonts/OTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}