#!/bin/bash set -e build_dir=$1 install_dir=$2 install_type=$3 src_dir=$(pwd)/sources/zlib-1.3.1 # Change to source directory cd ${src_dir} # Install the package to the specified directory make DESTDIR=${install_dir} PREFIX=${PREFIX} install # Remove the useless static library as specified in LFS instructions rm -fv ${install_dir}${LIBDIR}/libz.a echo "Installation complete"