main/perl-extutils-cchecker: upgrade to 0.10, modernize and add check

This commit is contained in:
Roberto Oliveira 2017-11-27 14:23:40 +00:00 committed by Natanael Copa
parent ce485c030d
commit 34b85da487

View File

@ -2,7 +2,7 @@
# Maintainer:
pkgname=perl-extutils-cchecker
_pkgreal=ExtUtils-CChecker
pkgver=0.09
pkgver=0.10
pkgrel=0
pkgdesc="Perl module configuration-time utilities for using C headers, libraries, or OS features"
url="http://search.cpan.org/dist/ExtUtils-CChecker/"
@ -10,23 +10,27 @@ arch="noarch"
license="GPL PerlArtistic"
depends="perl-test-exception"
makedepends="perl-dev"
checkdepends="perl-test-fatal perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
cd "$_builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" -name .packlist -name perllocal.pod -delete
}
md5sums="2c7b30a367fc67851be44f9b4c98b652 ExtUtils-CChecker-0.09.tar.gz"
sha256sums="ebf167e3f98b4b1ff8e7a5e98d084558b87d0b19442f5da33233ef6b2eb66ad7 ExtUtils-CChecker-0.09.tar.gz"
sha512sums="51068985b7c62af407a600dc665031966abf45775ac1e4ce97d49474af070df86622db47a1248aaa8f89e3544f4937665287162cf3f80cbc930bf56d57d8d6b3 ExtUtils-CChecker-0.09.tar.gz"
sha512sums="8b43c559333d14d682a00a0fa956aff8b6b4209b7b442f330f9e8573b438dcd5a2d3b86582e2aad2f974c342acee3e79785b9816cb585807dba9b448a1626d4c ExtUtils-CChecker-0.10.tar.gz"