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