From ef119707792cfc6d28817968a775522f69fe364d Mon Sep 17 00:00:00 2001 From: core Date: Tue, 11 May 2010 20:00:08 +0200 Subject: desktop/liberation-fonts-ttf: Added to 12.0 repository --- desktop/liberation-fonts-ttf/doinst.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 desktop/liberation-fonts-ttf/doinst.sh (limited to 'desktop/liberation-fonts-ttf/doinst.sh') diff --git a/desktop/liberation-fonts-ttf/doinst.sh b/desktop/liberation-fonts-ttf/doinst.sh new file mode 100644 index 0000000000..471252c192 --- /dev/null +++ b/desktop/liberation-fonts-ttf/doinst.sh @@ -0,0 +1,25 @@ +#!/bin/sh +# Update mkfontscale and mkfontdir: +if [ -x /usr/bin/mkfontdir ]; then + ( cd /usr/share/fonts/TTF + mkfontscale . + mkfontdir . + ) +fi + +# Update the X font indexes: +if [ -x /usr/bin/fc-cache ]; then + /usr/bin/fc-cache -f +fi + +# For some versions before Slackware 12.0 +if [ -x /usr/X11R6/bin/mkfontdir ]; then + ( cd /usr/X11R6/lib/X11/fonts/TTF + mkfontscale . + mkfontdir . + ) +fi + +if [ -x /usr/X11R6/bin/fc-cache ]; then + /usr/bin/fc-cache -f +fi -- cgit v1.2.3