#!/bin/bash
-hvconfig_pre()
-{
- if [ -z "${HV_FONTS_PATH}" ]; then
- echo "Missing HV_FONTS_PATH environment variable"
- exit 1
- fi
-
- CONFIGURE_OPTS="\
- ${CONFIGURE_OPTS} \
- --localstatedir=/var \
- --disable-docs \
- --without-add-fonts \
- --with-docdir=/usr/share/doc/${PACKAGE}"
-}
-
hvbuild_post()
{
- mkdir -v -p ${HV_FONTS_PATH}/{TrueType,Type1}
- mkdir -v -p /etc/fonts
-
- if [ -f /etc/fonts/local.conf ]; then
- mv -v /etc/fonts/local.conf /etc/fonts/local.conf.old
- fi
-
- # Adding X and our local fonts directory to local configuration file
- cat > /etc/fonts/local.conf << "EOF"
-<?xml version="1.0"?>
-<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-<!-- /etc/fonts/local.conf file for local customizations -->
-<fontconfig>
- <dir>_HV_FONTS_PATH_/TrueType</dir>
- <dir>_HV_FONTS_PATH_/Type1</dir>
-</fontconfig>
-EOF
-
- sed -i -e "s!_HV_FONTS_PATH_!${HV_FONTS_PATH}!g" /etc/fonts/local.conf
-
- # Updating cache database.
+ # Updating font information cache.
fc-cache -f
}