summaryrefslogtreecommitdiffstats
path: root/wqy-bitmapfont
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2008-02-05 22:39:48 +0000
committer Eric Hameleers <alien@slackware.com>2008-02-05 22:39:48 +0000
commitaeef55b822f7fa21290db4121b0ac7476c2d7d0e (patch)
tree9a0f1d8681da2f062d26cc060d13399bc39cafbb /wqy-bitmapfont
parent3e51f58aea9969c156705cfdfe1ad68c643742fe (diff)
downloadasb-aeef55b822f7fa21290db4121b0ac7476c2d7d0e.tar.gz
asb-aeef55b822f7fa21290db4121b0ac7476c2d7d0e.tar.xz
This is the final version
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: