#!/bin/sh # 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} && GS_FONTS_PATH="${HV_FONTS_PATH}/ghostscript" # Unpack all the fonts to ${GS_FONTS_PATH} install -v -m755 -d ${GS_FONTS_PATH} && decompress_package ${GHOSTSCRIPT_FONTS_STD} && decompress_package ${GHOSTSCRIPT_FONTS_OTHER} && mv ${LFS_TMP}/fonts/* ${GS_FONTS_PATH} && rmdir ${LFS_TMP}/fonts && chown -v -R root:root ${GS_FONTS_PATH} && cd ${LFS_TMP}/${1} && sed -i "s/bbox.dev$/x11.dev/" Makefile.in && ./configure \ --prefix=/usr \ --enable-threads \ --without-omni \ --with-fontpath=${GS_FONTS_PATH} && make && make install && #rmdir -v /usr/lib/ghostscript/$(get_pkg_ver_base ${1}) /usr/lib/ghostscript && ln -v -s ../ghostscript/$(get_pkg_ver_base ${1})/doc /usr/share/doc/${1} && for INSTFILE in `ls doc`; do if [ ! -f /usr/share/doc/${1}/${INSTFILE} ]; then install -v -m644 doc/${INSTFILE} /usr/share/doc/${1}/ fi done && # Checking if X is installed... if [ -d /usr/X11R6 ]; then # Adding our local fonts directory to local configuration file sed -i -e "s!^!${GS_FONTS_PATH}\n!" \ /etc/fonts/local.conf && # Updating fonts cache database. fc-cache -f fi && ldconfig # Return last error exit $?