Installation of Bzip2
Since the Bzip2 package has no configure script we can't prepare it
for compilation. Instead we just run the make
program and start compiling, with a few variables changed to suit our
environment:
make -f Makefile-libbz2_so
make LDFLAGS="-s"
make check
make PREFIX=/stage1 install
yes | cp bzip2-shared /stage1/bin/bzip2
ln -s libbz2.so.1.0 libbz2.so
cp -a libbz2.so* /stage1/lib
rm -f /stage1/bin/{bunzip2,bzcat}
ln -s bzip2 /stage1/bin/bunzip2
ln -s bzip2 /stage1/bin/bzcat