# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-compress-raw-bzip2 _pkgname=Compress-Raw-Bzip2 pkgver=2.087 pkgrel=0 pkgdesc="Perl low-level interface to bzip2 compression library" url="https://metacpan.org/release/PMQS/Compress-Raw-Bzip2-$pkgver" 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/$_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="d3ccf64e1180284e2fb3dfe1e79f5aa69557afded9a758ef3ae6f968da736e13b7fd200c7f6e7faa63ad17fd60da9c5d0ea739c67c8aae2f06592f5b3db7ddaf Compress-Raw-Bzip2-2.087.tar.gz"