#!/bin/bash

cd $BLDDIR
rm -rf bzip2-$BZIP2_VER
tar -xf $SRCDIR/bzip2-$BZIP2_VER.tar.gz
cd bzip2-$BZIP2_VER

cp -v Makefile{,.orig}
sed -e 's@^\(all:.*\) test@\1@g' Makefile.orig > Makefile

make CC="${CC}" AR="${AR}" RANLIB="${RANLIB}"
make PREFIX=/tools install

cd $ROOT
