diff options
Diffstat (limited to 'terminus-font/build')
-rwxr-xr-x | terminus-font/build/terminus-font.SlackBuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/terminus-font/build/terminus-font.SlackBuild b/terminus-font/build/terminus-font.SlackBuild index 01f42134..53070fca 100755 --- a/terminus-font/build/terminus-font.SlackBuild +++ b/terminus-font/build/terminus-font.SlackBuild @@ -155,9 +155,13 @@ find $PKG/usr/doc -type f -exec chmod 644 {} \; mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc cat <<-EOT > $PKG/install/doinst.sh - mkfontdir .${XFONTDIR} - touch .${XFONTDIR} - fc-cache .${XFONTDIR} + if [ -x .${XPREF}/bin/mkfontdir ]; then + .${XPREF}/bin/mkfontdir .${XFONTDIR} + .${XPREF}/bin/mkfontscale .${XFONTDIR} + fi + if [ -x .${XPREF}/bin/fc-cache ]; then + .${XPREF}/bin/fc-cache -f .${XFONTDIR} + fi # Check $XFONTDIR availability in xorg.conf: if ! grep -q ${XFONTDIR} etc/X11/xorg.conf ; then echo "" |