Install Bzip2 by running the following commands:
sed \
���s/"\$(CC) \$(CFLAGS) -o"/"\$(CC) \$(CFLAGS) \$(LDFLAGS) -o"/ \
���Makefile | make -f /dev/stdin LDFLAGS=-static &&
make PREFIX=$LFS/usr install &&
cd $LFS/usr/bin &&
mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin
The Bzip2 packages contains the bzip2, bunzip2, bzcat and bzip2recover programs.
bzip2 compresses files using the Burrows-Wheeler block sorting text compression algorithm, and Huffman coding. Compression is generally considerably better than that achieved by more conventional LZ77/LZ78-based compressors, and approaches the performance of the PPM family of statistical compressors.
Bunzip2 decompresses files that are compressed with bzip2.
bzcat (or bzip2 -dc) decompresses all specified files to the standard output.
bzip2recover recovers data from damaged bzip2 files.