#!/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} && # This command suppresses some unneeded screen output from the update-pciids # command if you don't have either Lynx or Wget installed by redirecting the # stderr output of the embedded which command to /dev/null. sed -i 's/null ;/null 2>\&1 ;/' update-pciids.sh && make PREFIX=/usr && make PREFIX=/usr install && # Some packages require the PCI static library. install -v -m 755 -d /usr/include/pci && install -v -m 644 lib/libpci.a /usr/lib && install -v -m 644 lib/*.h /usr/include/pci # Return last error exit $?