summaryrefslogtreecommitdiffstats
path: root/system/culmus/doinst.sh
diff options
context:
space:
mode:
author Robby Workman2014-12-07 08:12:02 +0100
committer Willy Sudiarto Raharjo2014-12-13 04:35:47 +0100
commit80587f16a16eb1bed2bc377c0822aac08d69b49b (patch)
tree8ac78cc6d1dc89941352cd0eb3d416902875f0a9 /system/culmus/doinst.sh
parent06993904f6b995be292530778d6776793f50776a (diff)
downloadslackbuilds-80587f16a16eb1bed2bc377c0822aac08d69b49b.tar.gz
system/culmus: Fix font installation and doinst.sh paths
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/culmus/doinst.sh')
-rw-r--r--system/culmus/doinst.sh21
1 files changed, 13 insertions, 8 deletions
diff --git a/system/culmus/doinst.sh b/system/culmus/doinst.sh
index 978cbdd491..3360147998 100644
--- a/system/culmus/doinst.sh
+++ b/system/culmus/doinst.sh
@@ -1,12 +1,17 @@
#!/bin/sh
-fc-cache -f
-cd /usr/share/fonts/TTF
-/usr/bin/mkfontscale
-/usr/bin/mkfontdir
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi
-cd /usr/share/fonts/Type1
-/usr/bin/mkfontscale
-/usr/bin/mkfontdir
+# Update the X font indexes:
+if [ -x /usr/bin/mkfontdir -o -x /usr/X11R6/bin/mkfontdir ]; then
+ ( cd /usr/share/fonts/TTF
+ mkfontscale .
+ mkfontdir .
+ )
+ ( cd /usr/share/fonts/Type1
+ mkfontscale .
+ mkfontdir .
+ )
-( cd /etc/fonts/conf.d ; ln -sf ../conf.avail/61-culmus.conf 61-culmus.conf )