#!/bin/bash set -e build_dir=$1 install_dir=$2 install_type=$3 # With simpleBuildEnvironment flag, we're already in build directory # which is a copy of the source tree # Change to the bzip2 source directory cd sources/bzip2-1.0.8 echo "Installing bzip2..." # Install using the Makefile with proper variables make -f Makefile PREFIX=${DESTDIR}${PREFIX} install echo "Installation complete."