#!/bin/sh set -o errexit # First argument of this script is the package name. # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} cd ${LFS_TMP}/${1}-build ../${1}/configure \ --prefix=/usr \ --sysconfdir=/etc \ --disable-docs make make install # Manually installing documentation. cd ${LFS_TMP}/${1} install -v -m644 doc/*.3 /usr/share/man/man3 install -v -m644 doc/*.5 /usr/share/man/man5 install -v -m755 -d /usr/share/doc/${1}/fontconfig-devel install -v -m644 doc/*.{html,pdf,txt} /usr/share/doc/${1} install -v -m644 doc/fontconfig-devel/* /usr/share/doc/${1}/fontconfig-devel 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 /usr/X11R6/lib/X11/fonts /usr/share/fonts/ghostscript EOF sed -i -e "s!_HV_FONTS_PATH_!${HV_FONTS_PATH}!g" /etc/fonts/local.conf # Updating cache database. fc-cache -f exit $?