From b34dd4564dd4eeab3430230f017ab3b82d22fd8e Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 15 Feb 2018 19:10:27 +0000 Subject: zlib: update to 1.2.11 --- abs/core/zlib/PKGBUILD | 42 +++++++++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/abs/core/zlib/PKGBUILD b/abs/core/zlib/PKGBUILD index 7951423..719fff5 100644 --- a/abs/core/zlib/PKGBUILD +++ b/abs/core/zlib/PKGBUILD @@ -1,17 +1,20 @@ # $Id$ # Maintainer: Pierre Schmitz -pkgname=zlib -pkgver=1.2.8 -pkgrel=3 -pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP' -arch=('i686' 'x86_64') +pkgbase=zlib +pkgname=(zlib minizip) +epoch=1 +pkgver=1.2.11 +pkgrel=2 +arch=('x86_64') license=('custom') -url="http://www.zlib.net/" +url="https://www.zlib.net/" depends=('glibc') options=('staticlibs') # needed by binutils testsuite -source=("http://zlib.net/current/zlib-${pkgver}.tar.gz") -md5sums=('44d667c142d7cda120332623eab69f40') +source=("https://zlib.net/zlib-${pkgver}.tar.gz"{,.asc}) +md5sums=('1c9f62f0778697a09d36121ead88e08e' + 'SKIP') +validpgpkeys=('5ED46A6721D365587791E2AA783FCD8E58BCAFBA') prepare() { cd ${srcdir}/zlib-$pkgver @@ -22,15 +25,36 @@ build() { cd ${srcdir}/zlib-$pkgver ./configure --prefix=/usr make + + cd contrib/minizip + cp Makefile Makefile.orig + cp ../README.contrib readme.txt + autoreconf --install + ./configure --prefix=/usr --enable-static=no + make } check() { cd ${srcdir}/zlib-$pkgver make test + + cd contrib/minizip + make -f Makefile.orig test } -package() { +package_zlib() { + pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP' + cd ${srcdir}/zlib-$pkgver make install DESTDIR=${pkgdir} install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/zlib/LICENSE } + +package_minizip() { + pkgdesc='Mini zip and unzip based on zlib' + depends=('zlib') + + cd ${srcdir}/zlib-$pkgver/contrib/minizip + make install DESTDIR=${pkgdir} + install -D -m644 ${srcdir}/zlib-$pkgver/LICENSE ${pkgdir}/usr/share/licenses/minizip/LICENSE +} -- cgit v0.12