summarylogtreecommitdiffstats
path: root/ttf-dejavu-sans-mono-powerline-git.install
diff options
context:
space:
mode:
authorDevin Christensen2015-06-08 11:20:07 -0600
committerDevin Christensen2015-06-08 11:20:07 -0600
commite47714118025e7502a02046a4088e9405afcae6c (patch)
tree24c3da98a3b1112f9750468faf1738ffc8bafea6 /ttf-dejavu-sans-mono-powerline-git.install
downloadaur-e47714118025e7502a02046a4088e9405afcae6c.tar.gz
Create package
Diffstat (limited to 'ttf-dejavu-sans-mono-powerline-git.install')
-rw-r--r--ttf-dejavu-sans-mono-powerline-git.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/ttf-dejavu-sans-mono-powerline-git.install b/ttf-dejavu-sans-mono-powerline-git.install
new file mode 100644
index 000000000000..83322116247a
--- /dev/null
+++ b/ttf-dejavu-sans-mono-powerline-git.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ mkfontscale /usr/share/fonts/TTF > /dev/null 2>&1
+ mkfontdir /usr/share/fonts/TTF > /dev/null 2>&1
+ fc-cache -s >/dev/null
+ echo "done"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}