summaryrefslogtreecommitdiff
path: root/pcr/ttf-opensans/ttf-opensans.install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/ttf-opensans/ttf-opensans.install')
-rw-r--r--pcr/ttf-opensans/ttf-opensans.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/pcr/ttf-opensans/ttf-opensans.install b/pcr/ttf-opensans/ttf-opensans.install
new file mode 100644
index 000000000..cbeabfec8
--- /dev/null
+++ b/pcr/ttf-opensans/ttf-opensans.install
@@ -0,0 +1,17 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+
+# vim: ts=2 sw=2 et: