summaryrefslogtreecommitdiffstats
path: root/system/ttf-crosscorefonts/doinst.sh
diff options
context:
space:
mode:
author Edinaldo P. Silva <edps.mundognu@gmail.com>2016-12-03 22:53:58 +0000
committer David Spencer <idlemoor@slackbuilds.org>2016-12-04 19:28:52 +0000
commit65b85d166eb19a6bb1a49f13d4879425f1121415 (patch)
tree2db90bb85d58c24823ad24d80a951c52870cd0da /system/ttf-crosscorefonts/doinst.sh
parent43963cd546023bd3514492bf4e333623f32d9951 (diff)
downloadslackbuilds-65b85d166eb19a6bb1a49f13d4879425f1121415.tar.gz
slackbuilds-65b85d166eb19a6bb1a49f13d4879425f1121415.tar.xz
system/ttf-crosscorefonts: Added (fonts from ChromeOS).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/ttf-crosscorefonts/doinst.sh')
-rw-r--r--system/ttf-crosscorefonts/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/ttf-crosscorefonts/doinst.sh b/system/ttf-crosscorefonts/doinst.sh
new file mode 100644
index 0000000000..8fec9f5340
--- /dev/null
+++ b/system/ttf-crosscorefonts/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