diff options
author | Eric Hameleers <alien@slackware.com> | 2008-08-04 21:23:13 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2008-08-04 21:23:13 +0000 |
commit | ab53ba49f23de5583bfcae62b69a78e3e0870ad7 (patch) | |
tree | 60311853f297e7c84b5d884e13ed54e1570a773c /terminus-font | |
parent | 956360039baea720ad33b553e8ea2c30b8226130 (diff) | |
download | asb-ab53ba49f23de5583bfcae62b69a78e3e0870ad7.tar.gz asb-ab53ba49f23de5583bfcae62b69a78e3e0870ad7.tar.xz |
In doinst.sh, use $XPREF as prefix instead of hard-coding it
Diffstat (limited to 'terminus-font')
-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 "" |