52 lines
1.3 KiB
Plaintext

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=perl-lwp-protocol-https
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=LWP-Protocol-https
pkgver=6.11
pkgrel=0
pkgdesc="Provide https support for LWP::UserAgent"
url="https://metacpan.org/release/LWP-Protocol-https/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
perl
perl-io-socket-ssl
perl-libwww
perl-mozilla-ca
perl-net-http
"
makedepends="perl-dev"
checkdepends="
perl-test-needs
perl-test-requiresinternet
"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/LWP-Protocol-https-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
# secfixes:
# 6.11-r0:
# - CVE-2014-3230
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
1e74c45898778c58d00eefbdd04a3ed47cf38164296278bec66c9b85f48ad635931873d2bf5423be8562df2c22b4bbf8eff0502bd29ba1c790bbbf76f3616ecf LWP-Protocol-https-6.11.tar.gz
"