summarylogtreecommitdiffstats
path: root/ttf-inconsolata-g.install
diff options
context:
space:
mode:
authorvlad2015-07-19 00:56:14 +0300
committervlad2015-07-19 00:56:14 +0300
commit6731d18bb858c0d19f249505164f3ce378313d17 (patch)
treef1613d7d64399b81b4cbf7b5f97f81537510e93f /ttf-inconsolata-g.install
downloadaur-6731d18bb858c0d19f249505164f3ce378313d17.tar.gz
Initial import
Diffstat (limited to 'ttf-inconsolata-g.install')
-rw-r--r--ttf-inconsolata-g.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/ttf-inconsolata-g.install b/ttf-inconsolata-g.install
new file mode 100644
index 000000000000..4f5212ef22ba
--- /dev/null
+++ b/ttf-inconsolata-g.install
@@ -0,0 +1,20 @@
+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 $*