diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 20:42:20 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 20:42:20 +0100 |
commit | f4dc6de45676e9276084c3d2e4d9161fc31434ac (patch) | |
tree | 5d6743f667419f3196fb79315c51c55022182e1e | |
parent | 683150bd92e7d2c4756c9ee68e84761190082e23 (diff) | |
download | aports-f4dc6de45676e9276084c3d2e4d9161fc31434ac.zip |
testing/perl-test-unit: modernize
-rw-r--r-- | testing/perl-test-unit/APKBUILD | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/testing/perl-test-unit/APKBUILD b/testing/perl-test-unit/APKBUILD index 61b9376523b..248c36792c6 100644 --- a/testing/perl-test-unit/APKBUILD +++ b/testing/perl-test-unit/APKBUILD @@ -4,45 +4,37 @@ pkgname=perl-test-unit _pkgreal=Test-Unit pkgver=0.25 -pkgrel=0 +pkgrel=1 pkgdesc="A unit testing framework" -url="http://search.cpan.org/dist/Test-Unit/" +url="https://metacpan.org/release/Test-Unit" arch="noarch" -license="GPL PerlArtistic" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" options="!check" -cpandepends="perl-class-inner perl-error perl-devel-symdump" -cpanmakedepends="" -cpancheckdepends="" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" -checkdepends="$cpancheckdepends" +depends="perl-class-inner perl-error perl-devel-symdump" +makedepends="perl-dev" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/M/MC/MCAST/$_pkgreal-$pkgver.tar.gz +source="https://cpan.metacpan.org/authors/id/M/MC/MCAST/Test-Unit-$pkgver.tar.gz testcase.patch" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - default_prepare || return 1 + default_prepare - cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } package() { - cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { - cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } |