aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-lwp-protocol-https/APKBUILD
blob: 9b3124ad4b876886cbfe93a7c8a1afda59c22f6c (plain)
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
42
43
44
45
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-lwp-protocol-https
_pkgreal=LWP-Protocol-https
pkgver=6.07
pkgrel=0
pkgdesc="Provide https support for LWP::UserAgent"
url="http://search.cpan.org/dist/LWP-Protocol-https/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-libwww perl-io-socket-ssl perl-mozilla-ca perl-net-http
	perl-net-ssleay"
cpanmakedepends="perl-try-tiny"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="perl-test-requiresinternet"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="4a07cd8a1c44e31781069a632a77f3af43747933420e831b4fd4a12faac7dc04f0c6b10ea773c3e14ecb66209a547b3587c0e3f481a55b9929db65f7b10343aa  LWP-Protocol-https-6.07.tar.gz"