1 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
10 url="https://www.zlib.net/"
13 'staticlibs' # needed by binutils testsuite
16 source=("https://zlib.net/zlib-${pkgver}.tar.gz"{,.asc})
17 sha256sums=('b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30'
19 validpgpkeys=('5ED46A6721D365587791E2AA783FCD8E58BCAFBA')
22 cd "${srcdir}/zlib-$pkgver"
23 grep -A 24 '^ Copyright' zlib.h > LICENSE
27 cd "${srcdir}/zlib-$pkgver"
29 CFLAGS+=" -ffat-lto-objects"
30 ./configure --prefix=/usr
34 cp Makefile Makefile.orig
35 cp ../README.contrib readme.txt
37 ./configure --prefix=/usr --enable-static=no
42 cd "${srcdir}/zlib-$pkgver"
46 make -f Makefile.orig test
50 pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP'
52 cd "${srcdir}/zlib-$pkgver"
53 make install DESTDIR="${pkgdir}"
54 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/zlib/LICENSE"
58 pkgdesc='Mini zip and unzip based on zlib'
61 cd "${srcdir}/zlib-$pkgver/contrib/minizip"
62 make install DESTDIR="${pkgdir}"
63 install -D -m644 "${srcdir}/zlib-$pkgver/LICENSE" "${pkgdir}/usr/share/licenses/minizip/LICENSE"
65 # https://github.com/madler/zlib/pull/229
66 rm "${pkgdir}/usr/include/minizip/crypt.h"