install.sh 382 B

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