1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Maintainer: Levente Polyak <anthraxx@archlinux.org>
3 # Contributor: Pierre Schmitz <pierre@archlinux.de>
12 url="https://www.zlib.net/"
15 'staticlibs' # needed by binutils testsuite
18 source=("https://zlib.net/zlib-${pkgver}.tar.gz"{,.asc})
19 sha256sums=('b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30'
21 validpgpkeys=('5ED46A6721D365587791E2AA783FCD8E58BCAFBA')
24 cd $pkgbase-$pkgver/contrib/minizip
25 cp Makefile Makefile.orig
26 cp ../README.contrib readme.txt
33 CFLAGS+=" -ffat-lto-objects"
34 ./configure --prefix=/usr
38 ./configure --prefix=/usr --enable-static=no
43 make test -C $pkgbase-$pkgver
45 make -f Makefile.orig test -C $pkgbase-$pkgver/contrib/minizip
49 pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP'
51 make install DESTDIR="${pkgdir}" -C $pkgbase-$pkgver
52 install -D -m644 $pkgbase-$pkgver/LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname/"
56 pkgdesc='Mini zip and unzip based on zlib'
59 make install DESTDIR="${pkgdir}" -C $pkgbase-$pkgver/contrib/$pkgname
60 install -D -m644 $pkgbase-$pkgver/LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname/"
62 # https://github.com/madler/zlib/pull/229
63 rm "${pkgdir}/usr/include/minizip/crypt.h"