#!/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} && cd ${LFS_TMP}/${1} && # SED substitution to add the -R switch to the PAGER variable so that escape # sequences are properly handled by Less. sed -i 's@-is@&R@g' configure && # SED substitution to comment out the MANPATH /usr/man line in the man.conf # file to prevent redundant results when using programs such as whatis. sed -i 's@MANPATH./usr/man@#&@g' src/man.conf.in && ./configure -confdir=/etc && make -j ${MAKEJOBS} && make install # Return last error exit $?