summarylogtreecommitdiffstats
path: root/ttf-game-fonts.install
diff options
context:
space:
mode:
Diffstat (limited to 'ttf-game-fonts.install')
-rw-r--r--ttf-game-fonts.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/ttf-game-fonts.install b/ttf-game-fonts.install
new file mode 100644
index 00000000000..7d21ab51b59
--- /dev/null
+++ b/ttf-game-fonts.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/misc
+ mkfontdir /usr/share/fonts/misc
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}