# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-compress-raw-zlib _realname=Compress-Raw-Zlib pkgver=2.087 pkgrel=1 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="3176ba1095c8532a9c39b70a3c95caed23a110b76ea01f3be505d396ae083fda8a1a1d032b85ce6d91ee927af557171e243ecd42d6556ad555032cbfbfee027d Compress-Raw-Zlib-2.087.tar.gz"