summarylogtreecommitdiffstats
path: root/ttf-material-icons.install
diff options
context:
space:
mode:
authorHussein Mohammed2015-08-01 19:54:00 +0100
committerHussein Mohammed2015-08-01 19:54:00 +0100
commitba9830c92bc3e5dba32f0ec5317803667fa66993 (patch)
treeac3ab88e69a8c9466ec471151dc1cc18272d6c5e /ttf-material-icons.install
downloadaur-ba9830c92bc3e5dba32f0ec5317803667fa66993.tar.gz
Initital commit
Diffstat (limited to 'ttf-material-icons.install')
-rw-r--r--ttf-material-icons.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/ttf-material-icons.install b/ttf-material-icons.install
new file mode 100644
index 000000000000..1e8ba5091faf
--- /dev/null
+++ b/ttf-material-icons.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ mkfontscale /usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc > /dev/null 2>&1
+ mkfontdir /usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc > /dev/null 2>&1
+ fc-cache -s >/dev/null
+ echo "done"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}