summaryrefslogtreecommitdiff
path: root/system/cantarell-fonts/doinst.sh
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2015-04-29 22:32:44 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-04-29 22:32:44 +0700
commite6587cefbe42022f55016c167e45b224a5b19392 (patch)
tree5e0cb9e249ca0f7362dbcdaae9558a5974b35423 /system/cantarell-fonts/doinst.sh
parentc3e4467d43bdcacad8678901f40d4ec5f30048bd (diff)
downloadslackbuilds-e6587cefbe42022f55016c167e45b224a5b19392.tar.gz
system/cantarell-fonts: Added (font).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/cantarell-fonts/doinst.sh')
-rw-r--r--system/cantarell-fonts/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/cantarell-fonts/doinst.sh b/system/cantarell-fonts/doinst.sh
new file mode 100644
index 0000000000..8fec9f5340
--- /dev/null
+++ b/system/cantarell-fonts/doinst.sh
@@ -0,0 +1,11 @@
+# Update the X font indexes:
+if [ -x /usr/bin/mkfontdir ]; then
+ ( cd /usr/share/fonts/TTF
+ mkfontscale .
+ mkfontdir .
+ )
+fi
+
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi