pkgname=zlib pkgver=1.3.1 pkgrel=1 pkgdesc="Compression library implementing the deflate compression method found in gzip and PKZIP" arch=('x86_64') url="https://www.zlib.net" license=('Zlib') depends=('glibc') source=(https://zlib.net/fossils/${pkgname}-${pkgver}.tar.gz) sha256sums=(9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23) build() { cd ${pkgname}-${pkgver} CFLAGS+=" -ffat-lto-objects" CC="${CHOST}-gcc" ./configure --prefix=/usr --libdir=/usr/lib64 make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install }