summarylogtreecommitdiffstats
path: root/ttf-hack-powerline-git.install
diff options
context:
space:
mode:
authorDevin Christensen2015-12-04 18:30:46 -0700
committerDevin Christensen2015-12-04 18:30:46 -0700
commit9fe32779cf163a1a603521f63397edae176f5ad9 (patch)
tree882a262669ebd180640665bb807062e98d44c0e6 /ttf-hack-powerline-git.install
downloadaur-9fe32779cf163a1a603521f63397edae176f5ad9.tar.gz
Add ttf-hack-powerline-git to AUR
Diffstat (limited to 'ttf-hack-powerline-git.install')
-rw-r--r--ttf-hack-powerline-git.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/ttf-hack-powerline-git.install b/ttf-hack-powerline-git.install
new file mode 100644
index 000000000000..83322116247a
--- /dev/null
+++ b/ttf-hack-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
+}