# Automatically generated by apkbuild-cpan, template 3 # Contributor: Valery Kartel # Maintainer: Valery Kartel pkgname=perl-mail-imapclient #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Mail-IMAPClient pkgver=3.43 pkgrel=1 pkgdesc="IMAP4 client library" url="https://metacpan.org/release/Mail-IMAPClient/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-parse-recdescent" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/P/PL/PLOBBES/Mail-IMAPClient-$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="9e2346238d68ea62c0ad2e5c03ae9a36face8238dbccbbc083bcefd41d82a7f75887e3245c792e4bd2a5999ce66fabdc4e861118904e96cf2781e1ca549a1b09 Mail-IMAPClient-3.43.tar.gz"