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