aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-metacpan-client/APKBUILD
blob: 46d2616e6e9512db683e1b3981a57d3c6cbb60c4 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-metacpan-client
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=MetaCPAN-Client
pkgver=2.030000
pkgrel=0
pkgdesc="A comprehensive, DWIM-featured client to the MetaCPAN API"
url="https://metacpan.org/release/MetaCPAN-Client/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl perl-net-ssleay perl-type-tiny perl-moo perl-json-maybexs perl-safe-isa
	perl-io-socket-ssl perl-ref-util perl-uri
	"
checkdepends="perl-www-mechanize-cached perl-http-tiny-mech perl-lwp-protocol-https perl-test-needs perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MI/MICKEY/MetaCPAN-Client-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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="
6b7e349f1b4129a30bb3f6b2c6a9e54401c43ffc183b1e7e679c9f7cfbe3e2ba224d4989fe67acf292e60f9f7bb07150f8dcf0a8eb77b060f96504fa5791f10b  MetaCPAN-Client-2.030000.tar.gz
"