#!/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} && make -f Makefile-libbz2_so && make clean && make -j ${MAKEJOBS} && make PREFIX=/usr install && cp -fv bzip2-shared /bin/bzip2 && cp -afv libbz2.so* /lib && ln -sfv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so && rm -fv /usr/bin/{bunzip2,bzcat,bzip2} && ln -sfv bzip2 /bin/bunzip2 && ln -sfv bzip2 /bin/bzcat # Return last error exit $?