blob: 1a6ac9583197083d9ba6c77f46f2d368af5a3415 (
plain)
1 # Description: Very high-quality data compression program
2 # URL: https://sourceware.org/bzip2/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4
5 name=bzip2
6 version=1.0.8
7 release=3
8 source=(https://sourceware.org/pub/bzip2/$name-$version.tar.gz
9 bzip2.pc.in)
10
11 build() {
12 cd $name-$version
13
14 install -d $PKG/usr/{bin,lib/pkgconfig,include,share/man/man1}
15 sed "/^CFLAGS/s/-O2/$CFLAGS/" -i Makefile Makefile-libbz2_so
16
17 make -f Makefile-libbz2_so
18
19 install libbz2.so.$version $PKG/usr/lib
20 ln -s libbz2.so.$version $PKG/usr/lib/libbz2.so
21 ln -s libbz2.so.$version $PKG/usr/lib/libbz2.so.1.0
22
23 make clean
24 make
25
26 install -m 0755 bzip2 bzip2recover bzdiff bzgrep bzmore $PKG/usr/bin
27 ln -s bzip2 $PKG/usr/bin/bunzip2
28 ln -s bzip2 $PKG/usr/bin/bzcat
29 ln -s bzdiff $PKG/usr/bin/bzcmp
30 ln -s bzgrep $PKG/usr/bin/bzegrep
31 ln -s bzgrep $PKG/usr/bin/bzfgrep
32 ln -s bzmore $PKG/usr/bin/bzless
33
34 install -m 0644 libbz2.a $PKG/usr/lib
35 install -m 0644 bzlib.h $PKG/usr/include
36 install -m 0644 *.1 $PKG/usr/share/man/man1
37
38 sed "s/@VERSION@/$version/" $SRC/bzip2.pc.in > $PKG/usr/lib/pkgconfig/bzip2.pc
39 }
|