| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Celeste <[email protected]> |
| 3 | # Maintainer: |
| 4 | pkgname=perl-test-lwp-useragent |
| 5 | pkgver=0.036 |
| 6 | pkgrel=1 |
| 7 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=Test-LWP-UserAgent |
| 9 | pkgdesc="LWP::UserAgent subclass for simulating and testing network calls" |
| 10 | url="https://metacpan.org/release/Test-LWP-UserAgent/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends=" |
| 14 | perl perl-http-date perl-http-message perl-libwww |
| 15 | perl-namespace-clean perl-safe-isa perl-try-tiny perl-uri |
| 16 | " |
| 17 | checkdepends=" |
| 18 | perl-json-maybexs perl-moose perl-path-tiny perl-plack |
| 19 | perl-test-deep perl-test-fatal perl-test-needs |
| 20 | perl-test-requiresinternet perl-test-warnings |
| 21 | " |
| 22 | subpackages="$pkgname-doc" |
| 23 | source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-LWP-UserAgent-$pkgver.tar.gz" |
| 24 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 25 | |
| 26 | build() { |
| 27 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 28 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ |
| 29 | INSTALLDIRS=vendor \ |
| 30 | NO_PACKLIST=1 \ |
| 31 | NO_PERLLOCAL=1 |
| 32 | make |
| 33 | } |
| 34 | |
| 35 | check() { |
| 36 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 37 | make test |
| 38 | } |
| 39 | |
| 40 | package() { |
| 41 | make DESTDIR="$pkgdir" install |
| 42 | } |
| 43 | |
| 44 | sha512sums=" |
| 45 | 6cf34dbd9c6fee3ab25ee31a97694f24499c7f41cd3d08e915176235148e69729f9434d58da78645e306d966031d2807f333f9847ddcc53b33474e6e6bea9e8e Test-LWP-UserAgent-0.036.tar.gz |
| 46 | " |