summaryrefslogtreecommitdiffstats
path: root/wqy-bitmapfont
diff options
context:
space:
mode:
Diffstat (limited to 'wqy-bitmapfont')
-rwxr-xr-xwqy-bitmapfont/build/wqy-bitmapfont.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/wqy-bitmapfont/build/wqy-bitmapfont.SlackBuild b/wqy-bitmapfont/build/wqy-bitmapfont.SlackBuild
index 398a62e7..598546a2 100755
--- a/wqy-bitmapfont/build/wqy-bitmapfont.SlackBuild
+++ b/wqy-bitmapfont/build/wqy-bitmapfont.SlackBuild
@@ -147,8 +147,12 @@ cp fonts.alias $PKG$FONTDIR/
# So that the package uninstalls cleanly:
touch $PKG$FONTDIR/fonts.{dir,scale}
-# Install the fontconfig file:
-cp 85-wqy-bitmapsong.conf $PKG/etc/fonts/conf.avail/
+# Install the fontconfig file.
+# Patch it so that fontconfig will find the font directory:
+patch -o $PKG/etc/fonts/conf.avail/85-wqy-bitmapsong.conf \
+ 85-wqy-bitmapsong.conf $SRCDIR/wqy-bitmapfont_fontconfig.patch
+# Nasty habit of patch invoked like this is the attributes of 600:
+chmod 644 $PKG/etc/fonts/conf.avail/85-wqy-bitmapsong.conf
( cd $PKG/etc/fonts/conf.d && \
ln -sf ../conf.avail/85-wqy-bitmapsong.conf
)
@@ -163,7 +167,7 @@ cat <<-EOT > $PKG/install/doinst.sh
cp ${FONTDIR}/fonts.dir ${FONTDIR}/fonts.scale
fi
if [ -x .$XPREF/bin/fc-cache ]; then
- chroot . $XPREF/bin/fc-cache $FONTDIR
+ chroot . $XPREF/bin/fc-cache -f $FONTDIR
fi
# Inform user of actions left for him/her to do: