mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
38 lines
1.4 KiB
Text
38 lines
1.4 KiB
Text
# 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.029000
|
|
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="f1bc369c2460307ed2a73b5913e5765feadaa34091f76030556457562356d4a6b2015c0df3acfb6793058e25bff4ee9dc25bd85e622ca75f438621fe12dc1410 MetaCPAN-Client-2.029000.tar.gz"
|