summarylogtreecommitdiffstats
path: root/ttf-digital-7.install
diff options
context:
space:
mode:
authorBenjamin Chrétien2013-12-18 00:38:07 +0100
committerBenjamin Chrétien2013-12-18 00:38:07 +0100
commit869aca710b73eaaffb887b7f2973ae018a12636a (patch)
tree56e77ae0dae97baeba7d65d9a82e88c88327157d /ttf-digital-7.install
downloadaur-ttf-digital-7.tar.gz
Add ttf-digital-7.
Diffstat (limited to 'ttf-digital-7.install')
-rw-r--r--ttf-digital-7.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/ttf-digital-7.install b/ttf-digital-7.install
new file mode 100644
index 000000000000..756dc2500da5
--- /dev/null
+++ b/ttf-digital-7.install
@@ -0,0 +1,21 @@
+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 $1
+}
+
+post_remove() {
+ post_install $1
+}
+
+op=$1
+shift
+
+$op $*
+