| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Sheila Aman <[email protected]> |
| 3 | # Maintainer: Sheila Aman <[email protected]> |
| 4 | pkgname=perl-lwp-protocol-https |
| 5 | pkgver=6.15 |
| 6 | pkgrel=0 |
| 7 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=LWP-Protocol-https |
| 9 | pkgdesc="Provide https support for LWP::UserAgent" |
| 10 | url="https://metacpan.org/release/LWP-Protocol-https/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends=" |
| 14 | perl |
| 15 | perl-io-socket-ssl |
| 16 | perl-libwww |
| 17 | perl-net-http |
| 18 | " |
| 19 | checkdepends=" |
| 20 | perl-test-needs |
| 21 | perl-test-requiresinternet |
| 22 | " |
| 23 | subpackages="$pkgname-doc" |
| 24 | source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/LWP-Protocol-https-$pkgver.tar.gz" |
| 25 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 26 | |
| 27 | # secfixes: |
| 28 | # 6.11-r0: |
| 29 | # - CVE-2014-3230 |
| 30 | |
| 31 | build() { |
| 32 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 33 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ |
| 34 | INSTALLDIRS=vendor \ |
| 35 | NO_PACKLIST=1 \ |
| 36 | NO_PERLLOCAL=1 |
| 37 | make |
| 38 | } |
| 39 | |
| 40 | check() { |
| 41 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 42 | make test |
| 43 | } |
| 44 | |
| 45 | package() { |
| 46 | make DESTDIR="$pkgdir" install |
| 47 | } |
| 48 | |
| 49 | sha512sums=" |
| 50 | 78fbe585dacac943de16f43cfbece13dac90237be4e957713384a69f237236e4aa18584727ec9adba16c459bb9ad74e8ac8acf45b88a74b4e52a5f954e452bb6 LWP-Protocol-https-6.15.tar.gz |
| 51 | " |