1 # Maintainer: Ronald van Haren <ronald.archlinux.org>
2 # Contributor: Judd <jvinet@zeroflux.org>
7 pkgdesc="A high-quality data compression program"
10 url="https://sourceware.org/bzip2/"
11 depends=('glibc' 'sh')
12 provides=('libbz2.so')
14 source=(https://sourceware.org/pub/bzip2/$pkgname-$pkgver.tar.gz{,.sig}
16 sha256sums=('ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269'
18 'eca9d8cd6376df1fb5442667c603032023fb21d8d183684550da0b96ade39654')
19 validpgpkeys=('EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A') # Mark Wielaard <mark@klomp.org>
23 cp ../bzip2.pc bzip2.pc
24 sed "s|@VERSION@|$pkgver|" -i bzip2.pc
30 make -f Makefile-libbz2_so CC="gcc $CFLAGS $CPPFLAGS $LDFLAGS"
31 make bzip2 bzip2recover CC="gcc $CFLAGS $CPPFLAGS $LDFLAGS"
42 install -dm755 "$pkgdir"/usr/{bin,lib,include,share/man/man1}
44 install -m755 bzip2-shared "$pkgdir"/usr/bin/bzip2
45 install -m755 bzip2recover bzdiff bzgrep bzmore "$pkgdir"/usr/bin
46 ln -sf bzip2 "$pkgdir"/usr/bin/bunzip2
47 ln -sf bzip2 "$pkgdir"/usr/bin/bzcat
49 cp -a libbz2.so* "$pkgdir"/usr/lib
50 ln -s libbz2.so.$pkgver "$pkgdir"/usr/lib/libbz2.so
51 ln -s libbz2.so.$pkgver "$pkgdir"/usr/lib/libbz2.so.1 # For compatibility with some other distros
53 install -m644 bzlib.h "$pkgdir"/usr/include/
55 install -m644 bzip2.1 "$pkgdir"/usr/share/man/man1/
56 ln -sf bzip2.1 "$pkgdir"/usr/share/man/man1/bunzip2.1
57 ln -sf bzip2.1 "$pkgdir"/usr/share/man/man1/bzcat.1
58 ln -sf bzip2.1 "$pkgdir"/usr/share/man/man1/bzip2recover.1
60 install -Dm644 bzip2.pc -t "$pkgdir"/usr/lib/pkgconfig
61 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE