# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-compress-raw-zlib _realname=Compress-Raw-Zlib pkgver=2.080 pkgrel=0 pkgdesc="Perl low-level interface to zlib compression library" url="http://search.cpan.org/dist/Compress-Raw-Zlib/" arch="all" license="GPL PerlArtistic" 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="0938fa640f90efe744797922f55fac2f4c5d3c18e09898b78180d1308dc4a50438dbbd93ca1f4c906d0f1c28c8444218f539fc0a0f8af94c3fc5b96c6d07df03 Compress-Raw-Zlib-2.080.tar.gz"