sbcl rebuild
[arch-packages.git] / zlib / trunk / PKGBUILD
blobd9b5cff4670453b02b32c349eb8c3ade921d81d2
1 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
3 pkgbase=zlib
4 pkgname=(zlib minizip)
5 epoch=1
6 pkgver=1.2.13
7 pkgrel=1
8 arch=('x86_64')
9 license=('custom')
10 url="https://www.zlib.net/"
11 depends=('glibc')
12 options=('staticlibs')  # needed by binutils testsuite
13 source=("https://zlib.net/zlib-${pkgver}.tar.gz"{,.asc})
14 sha256sums=('b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30'
15             'SKIP')
16 validpgpkeys=('5ED46A6721D365587791E2AA783FCD8E58BCAFBA')
18 prepare() {
19         cd "${srcdir}/zlib-$pkgver"
20         grep -A 24 '^  Copyright' zlib.h > LICENSE
23 build() {
24         cd "${srcdir}/zlib-$pkgver"
26         CFLAGS+=" -ffat-lto-objects"
27         ./configure --prefix=/usr
28         make
30         cd contrib/minizip
31         cp Makefile Makefile.orig
32         cp ../README.contrib readme.txt
33         autoreconf --install
34         ./configure --prefix=/usr --enable-static=no
35         make
38 check() {
39         cd "${srcdir}/zlib-$pkgver"
40         make test
42         cd contrib/minizip
43         make -f Makefile.orig test
46 package_zlib() {
47         pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP'
49         cd "${srcdir}/zlib-$pkgver"
50         make install DESTDIR="${pkgdir}"
51         install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/zlib/LICENSE"
54 package_minizip() {
55         pkgdesc='Mini zip and unzip based on zlib'
56         depends=('zlib')
58         cd "${srcdir}/zlib-$pkgver/contrib/minizip"
59         make install DESTDIR="${pkgdir}"
60         install -D -m644 "${srcdir}/zlib-$pkgver/LICENSE" "${pkgdir}/usr/share/licenses/minizip/LICENSE"
62         # https://github.com/madler/zlib/pull/229
63         rm "${pkgdir}/usr/include/minizip/crypt.h"