# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-compress-raw-bzip2 _pkgname=Compress-Raw-Bzip2 pkgver=2.081 pkgrel=0 pkgdesc="Perl low-level interface to bzip2 compression library" url="http://search.cpan.org/~pmqs/Compress-Raw-Bzip2-2.024/" arch="all" license="GPL PerlArtistic" depends="perl" makedepends="perl-dev" source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/${_pkgname}-${pkgver}.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" prepare() { default_prepare PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd $builddir export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') 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 # remove man pages already provided by perl-doc rm -rf "$pkgdir"/usr/share/man } sha512sums="fd3893677e3f76ece567f5f1f7529ee42b2c5afb7d4026a51bc17f4ddcf75b1513261c00655f28b0ae1af0144751031b7e8a53b377f7c6c69f338b18bc871e52 Compress-Raw-Bzip2-2.081.tar.gz"