aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-lwp-protocol-https/APKBUILD
blob: 2256e1eb9c69ad69e87100a6ff236d65be1ec9ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=perl-lwp-protocol-https
_pkgreal=LWP-Protocol-https
pkgver=6.10
pkgrel=2
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-libwww perl-mozilla-ca perl-io-socket-ssl perl-net-http"
checkdepends="perl-test-requiresinternet"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

# cpanminus won't fallback on wget if perl-libwww is installed.
# So, this is needed for cpanminus to use HTTPS by default.
install_if="perl-libwww perl-app-cpanminus"

prepare() {
	default_prepare
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}


sha512sums="4d3c89dab6fadcb574c176977ca6debba177ee3f817e87319d9cd81e0a0b09214e271c2e97edc456dad2f4a1ebf8c6266a4ae52c3a93144880a5b32db97e7a31  LWP-Protocol-https-6.10.tar.gz"