From aeef55b822f7fa21290db4121b0ac7476c2d7d0e Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 5 Feb 2008 22:39:48 +0000 Subject: This is the final version --- wqy-bitmapfont/build/wqy-bitmapfont.SlackBuild | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'wqy-bitmapfont') 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: -- cgit v1.2.3-65-gdbad