#!/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} cp makefiles/makefile.linux Makefile make prefix=/usr install # The documentation files are not installed by the installation procedure, # so they are copied manually. install -v -m644 doc/man/*.3 /usr/share/man/man3 install -v -m644 doc/man/*.5 /usr/share/man/man5 install -v -m755 -d /usr/share/doc/${1} install -v -m644 doc/*.{png,txt} /usr/share/doc/${1} ldconfig exit $?