# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-compress-raw-zlib _realname=Compress-Raw-Zlib pkgver=2.091 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" source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/$_realname-$pkgver.tar.gz" builddir="$srcdir/$_realname-$pkgver" build() { cd $builddir export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { cd $builddir 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="15a3edcd88da2d1d106e89858c2e7003c0e8cbc5511a506e0f2531dced04c09724528b1589cfa1e53daa2ce41c8ef55b332166ca6188f39a77d73bc5e9496dbd Compress-Raw-Zlib-2.091.tar.gz"