summaryrefslogtreecommitdiffstats
path: root/terminus-font
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2008-08-04 21:14:47 +0000
committer Eric Hameleers <alien@slackware.com>2008-08-04 21:14:47 +0000
commit956360039baea720ad33b553e8ea2c30b8226130 (patch)
treef33453a68fb03f053cc7ab3b0a5aa3f932693c31 /terminus-font
parent1fe86cda8769d058bc3473888c10ce289fdc03e0 (diff)
downloadasb-956360039baea720ad33b553e8ea2c30b8226130.tar.gz
asb-956360039baea720ad33b553e8ea2c30b8226130.tar.xz
Add a check for $XFONTDIR to doinst.sh
Diffstat (limited to 'terminus-font')
-rwxr-xr-xterminus-font/build/terminus-font.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/terminus-font/build/terminus-font.SlackBuild b/terminus-font/build/terminus-font.SlackBuild
index 16e9ac82..01f42134 100755
--- a/terminus-font/build/terminus-font.SlackBuild
+++ b/terminus-font/build/terminus-font.SlackBuild
@@ -155,9 +155,17 @@ 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 usr/share/fonts/local
- touch usr/share/fonts/local
- fc-cache usr/share/fonts/local
+ mkfontdir .${XFONTDIR}
+ touch .${XFONTDIR}
+ fc-cache .${XFONTDIR}
+ # Check $XFONTDIR availability in xorg.conf:
+ if ! grep -q ${XFONTDIR} etc/X11/xorg.conf ; then
+ echo ""
+ echo "Could not detect ${XFONTDIR} in the FontPath of '/etc/X11/xorg.conf'"
+ echo "You have to add this directory to the FontPath if you want to"
+ echo " use the Terminus font in X.Org."
+ echo ""
+ fi
EOT
# Build the package: