# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-compress-raw-zlib _pkgname=Compress-Raw-Zlib pkgver=2.206 pkgrel=0 pkgdesc="Perl low-level interface to zlib compression library" url="https://metacpan.org/release/Compress-Raw-Zlib" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev zlib-dev" source="https://cpan.metacpan.org/authors/id/P/PM/PMQS/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 BUILD_ZLIB=0 perl Makefile.PL INSTALLDIRS=vendor make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete # man pages are already provided by perl-doc rm -rf "$pkgdir"/usr/share/man } sha512sums=" 3c722e6f363de90f6367446624090a9c482c9ed09f34b749765706da68e55e63f94608ea1d06669af567d8f8111d3311415f1f8a3daf782368c9a7bd4ff226f5 Compress-Raw-Zlib-2.206.tar.gz "