aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/culmus/culmus.SlackBuild5
-rw-r--r--system/culmus/doinst.sh21
2 files changed, 17 insertions, 9 deletions
diff --git a/system/culmus/culmus.SlackBuild b/system/culmus/culmus.SlackBuild
index bb0cbb0dea9c3..21a0e03cf4f86 100644
--- a/system/culmus/culmus.SlackBuild
+++ b/system/culmus/culmus.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=culmus
VERSION=${VERSION:-0.130}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
ARCH=${ARCH:-noarch}
@@ -60,6 +60,9 @@ cp *.pfa *.afm $PKG/usr/share/fonts/Type1/
mkdir -p $PKG/etc/fonts/conf.avail/
cp culmus.conf $PKG/etc/fonts/conf.avail/61-culmus.conf
+mkdir -p $PKG/etc/fonts/conf.d
+ln -sf ../conf.avail/61-culmus.conf $PKG/etc/fonts/conf.d
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
CHANGES GNU-GPL LICENSE LICENSE-BITSTREAM \
diff --git a/system/culmus/doinst.sh b/system/culmus/doinst.sh
index 978cbdd491519..33601479985f6 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 )