diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-27 14:23:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-28 17:14:29 +0000 |
commit | 34b85da487b6fe889fe0fd64a31f646b80c72465 (patch) | |
tree | 498617a2fcd57173c330c7c3236d4818f465f1ec /main/perl-extutils-cchecker | |
parent | ce485c030d81eb0672188af30062b50f8a416282 (diff) | |
download | aports-34b85da487b6fe889fe0fd64a31f646b80c72465.tar.bz2 aports-34b85da487b6fe889fe0fd64a31f646b80c72465.tar.xz |
main/perl-extutils-cchecker: upgrade to 0.10, modernize and add check
Diffstat (limited to 'main/perl-extutils-cchecker')
-rw-r--r-- | main/perl-extutils-cchecker/APKBUILD | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/main/perl-extutils-cchecker/APKBUILD b/main/perl-extutils-cchecker/APKBUILD index f9e20cd0a9..47deac7c0b 100644 --- a/main/perl-extutils-cchecker/APKBUILD +++ b/main/perl-extutils-cchecker/APKBUILD @@ -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" |