diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-03-24 22:04:49 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-03-24 22:08:25 +0000 |
commit | 16bc4ebb81f196a33c44673929f5fa69ef200db4 (patch) | |
tree | 47f9abfa86ad9e68c1b9c47007e2208e6d26f212 /main/perl-test-simple | |
parent | 7d4d1a1820b3b74038066563672af75b47a2f420 (diff) | |
download | aports-16bc4ebb81f196a33c44673929f5fa69ef200db4.tar.bz2 aports-16bc4ebb81f196a33c44673929f5fa69ef200db4.tar.xz |
main/perl-test-simple: modernize abuild (automatically via apkbuild-cpan)
Diffstat (limited to 'main/perl-test-simple')
-rw-r--r-- | main/perl-test-simple/APKBUILD | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/main/perl-test-simple/APKBUILD b/main/perl-test-simple/APKBUILD index e5aa67a132..446458bf53 100644 --- a/main/perl-test-simple/APKBUILD +++ b/main/perl-test-simple/APKBUILD @@ -1,4 +1,4 @@ -# Automatically generated by apkbuild-cpan, template 1 +# Automatically generated by apkbuild-cpan, template 2 # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-test-simple @@ -10,10 +10,12 @@ url="http://search.cpan.org/dist/Test-Simple/" arch="noarch" license="GPL PerlArtistic" cpandepends="" -cpanmakedepends=" " +cpanmakedepends="" +cpancheckdepends="" +provides="perl-test-tester" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" -provides="perl-test-tester" +checkdepends="$cpancheckdepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" @@ -29,7 +31,7 @@ prepare() { build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') - make && make test + make } package() { @@ -38,6 +40,12 @@ package() { find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + doc() { default_doc replaces="perl-doc" |