43 lines
1.3 KiB
Plaintext

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-metacpan-client
pkgver=2.032000
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=MetaCPAN-Client
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 \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
8bd9f9c21be7e0196b11f7f0c2a9287e9d536035d731026bf255f9577003115e6d1a732fe78e1bc455fc9d5c11a84ad07865b55cf92f576c4c3588fd41600ddc MetaCPAN-Client-2.032000.tar.gz
"