summarylogtreecommitdiffstats
path: root/ttf-win7-fonts.install
diff options
context:
space:
mode:
Diffstat (limited to 'ttf-win7-fonts.install')
-rw-r--r--ttf-win7-fonts.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/ttf-win7-fonts.install b/ttf-win7-fonts.install
new file mode 100644
index 000000000000..2c3f67296255
--- /dev/null
+++ b/ttf-win7-fonts.install
@@ -0,0 +1,21 @@
+## arg 1: the new package version
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+## arg 1: the old package version
+post_remove() {
+ post_install $1
+}
+
+# vim:set ts=2 sw=2 et: