# Maintainer: Natanael Copa pkgname=zlib pkgver=1.2.13 pkgrel=2 pkgdesc="A compression/decompression Library" arch="all" license="Zlib" url="https://zlib.net/" subpackages="$pkgname-static $pkgname-dev $pkgname-doc" source="https://zlib.net/fossils/zlib-$pkgver.tar.gz configure-Pass-LDFLAGS-to-link-tests.patch " # secfixes: # 1.2.12-r2: # - CVE-2022-37434 # 1.2.11-r4: # - CVE-2018-25032 build() { # we trade size for a little more speed. export CFLAGS="$CFLAGS -O2" CHOST="$CHOST" ./configure \ --prefix=/usr \ --libdir=/lib \ --shared make } check() { make check } package() { make install \ pkgconfigdir="/usr/lib/pkgconfig" \ DESTDIR="$pkgdir" } sha512sums=" 99f0e843f52290e6950cc328820c0f322a4d934a504f66c7caa76bd0cc17ece4bf0546424fc95135de85a2656fed5115abb835fd8d8a390d60ffaf946c8887ad zlib-1.2.13.tar.gz 76179eb7e498aef5bc88c3f826c6f2506a2d3c3a2e2560ef1825bd4a9297d68b0d2390619a4b3b0b2e6dde765431e5fba18fd15fbd1ad99827244f8f9bdbd909 configure-Pass-LDFLAGS-to-link-tests.patch "