X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpkg%2Ffontconfig;h=8e48f426aaef51c745cdc60324c99ad79b1ca6f2;hb=1b6490195147ee6d1098cf255240d60f60c40108;hp=fd696a276e1b46ef60c69afd7ac4ab4cd9d14974;hpb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;p=hvlinux.git diff --git a/stage3/pkg/fontconfig b/stage3/pkg/fontconfig index fd696a2..8e48f42 100644 --- a/stage3/pkg/fontconfig +++ b/stage3/pkg/fontconfig @@ -1,60 +1,7 @@ -#!/bin/sh -set -o errexit +#!/bin/bash -# First argument of this script is the package name. -# Remaining arguments are additional configure options. - -# Reading system configuration informations, functions and package versions. -source ../sysinfos -source ../functions -source ../packages-list - -PACKAGE=${1} -shift -CONFIGURE_OPTS=${*} - -if [ -z "${HV_FONTS_PATH}" ]; then - echo "Missing HV_FONTS_PATH environment variable" - exit 1 -fi - -# Applying patches (if any) -apply_patches ${PACKAGE} - -cd ${LFS_TMP}/${PACKAGE}-build -../${PACKAGE}/configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --disable-docs \ - --without-add-fonts \ - --with-docdir=/usr/share/doc/${PACKAGE} \ - ${CONFIGURE_OPTS} -make -make install -ldconfig - -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" - - - - - _HV_FONTS_PATH_/TrueType - _HV_FONTS_PATH_/Type1 - -EOF - -sed -i -e "s!_HV_FONTS_PATH_!${HV_FONTS_PATH}!g" /etc/fonts/local.conf - -# Updating cache database. -fc-cache -f - -exit $? +hvbuild_post() +{ + # Updating font information cache. + fc-cache -f +}