summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-02-15 19:10:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-02-15 19:10:27 (GMT)
commitb34dd4564dd4eeab3430230f017ab3b82d22fd8e (patch)
treef4073fcb1c562cc43e13f943b904113aea549ba8
parentfd487603c196bd4631294ddb868405d0b3e6ea42 (diff)
downloadlinhes_pkgbuild-b34dd4564dd4eeab3430230f017ab3b82d22fd8e.zip
linhes_pkgbuild-b34dd4564dd4eeab3430230f017ab3b82d22fd8e.tar.gz
linhes_pkgbuild-b34dd4564dd4eeab3430230f017ab3b82d22fd8e.tar.bz2
zlib: update to 1.2.11
-rw-r--r--abs/core/zlib/PKGBUILD42
1 files 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 <pierre@archlinux.de>
-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
+}