[arch-commits] Commit in zlib/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at gemini.archlinux.org
Sun Apr 24 06:20:38 UTC 2022


    Date: Sunday, April 24, 2022 @ 06:20:37
  Author: foutrelis
Revision: 443863

archrelease: copy trunk to testing-x86_64

Added:
  zlib/repos/testing-x86_64/
  zlib/repos/testing-x86_64/PKGBUILD
    (from rev 443862, zlib/trunk/PKGBUILD)

----------+
 PKGBUILD |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

Copied: zlib/repos/testing-x86_64/PKGBUILD (from rev 443862, zlib/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2022-04-24 06:20:37 UTC (rev 443863)
@@ -0,0 +1,69 @@
+# Maintainer: Pierre Schmitz <pierre at archlinux.de>
+
+pkgbase=zlib
+pkgname=(zlib minizip)
+epoch=1
+pkgver=1.2.12
+pkgrel=2
+arch=('x86_64')
+license=('custom')
+url="https://www.zlib.net/"
+depends=('glibc')
+options=('staticlibs')  # needed by binutils testsuite
+source=("https://zlib.net/zlib-${pkgver}.tar.gz"{,.asc}
+        $pkgname-handle-incorrect-crc-inputs.patch::https://github.com/madler/zlib/commit/ec3df00224d4.patch)
+sha256sums=('91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9'
+            'SKIP'
+            '00e023c3ccb7b895ebb3421970b1b77f8a527b40190f35050b79fd0e817a7b0c')
+validpgpkeys=('5ED46A6721D365587791E2AA783FCD8E58BCAFBA')
+
+prepare() {
+	cd "${srcdir}/zlib-$pkgver"
+	grep -A 24 '^  Copyright' zlib.h > LICENSE
+
+	# https://github.com/madler/zlib/issues/613
+	patch -Np1 -i ../$pkgname-handle-incorrect-crc-inputs.patch
+}
+
+build() {
+	cd "${srcdir}/zlib-$pkgver"
+
+	CFLAGS+=" -ffat-lto-objects"
+	./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_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"
+
+	# https://github.com/madler/zlib/pull/229
+	rm "${pkgdir}/usr/include/minizip/crypt.h"
+}



More information about the arch-commits mailing list