VERSION=1.0.1 BUILD=1 ARCH=i386 TAG=ADD PKGNAME=bzip2-$VERSION-$ARCH-$BUILD MAINTAINER="David Cantrell " IGNOREPATH=/tmp:/proc:/dev:/root:/var:/a:/home STRIPLIB=y STRIPBIN=y PROGNAME=bzip2 DESC="\ bzip2 version $VERSION (a block-sorting file compressor)\n\ \n\ Bzip2 compresses files using the Burrows-Wheeler block sorting text\n\ compression algorithm, and Huffman coding. Compression is generally\n\ considerably better than that achieved by more conventional\n\ LZ77/LZ78-based compressors, and approaches the performance of the PPM\n\ family of statistical compressors.\n\ \n\ Julian Seward is the author of bzip2." compile() { # build tar xzvf $CWD/bzip2-$VERSION.tar.gz cd bzip2-$VERSION make -f Makefile-libbz2_so make } install() { # install the binaries cp bzip2-shared bzip2recover /bin mv /bin/bzip2-shared /bin/bzip2 ( cd /bin rm -rf bunzip2 ; ln -sf bzip2 bunzip2 ) # install headers and libraries mkdir -p /usr/include mkdir -p /usr/lib cp bzlib.h /usr/include cp libbz2.a /usr/lib/libbz2.a cp libbz2.so.$VERSION /lib/libbz2.so.$VERSION ( cd /lib rm -f libbz2.so.1.0 ; ln -sf libbz2.so.$VERSION libbz2.so.1.0 ) ( cd /usr/lib rm -rf libbz2.so ; ln -sf ../../lib/libbz2.so.1.0 libbz2.so ) # install documentation cp bzip2.1 /usr/man/man1 echo '.so man1/bzip2.1' > /usr/man/man1/bzip2recover.1 mkdir -p /usr/doc/bzip2-$VERSION cp CHANGES LICENSE README README.COMPILATION.PROBLEMS Y2K_INFO \ bzip2.txt *.html /usr/doc/bzip2-$VERSION }