# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-anyevent-dns-etchosts _pkgreal=AnyEvent-DNS-EtcHosts pkgver=0.0103 pkgrel=4 pkgdesc="Use /etc/hosts before DNS" url="https://metacpan.org/release/AnyEvent-DNS-EtcHosts" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-anyevent" makedepends="perl-module-build perl-test-deep" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/D/DE/DEXTER/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') perl Build.PL installdirs=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') ./Build } package() { ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { ./Build test } sha512sums="213795e75cde1acabc73220814b1b1396fca86b964e5701e81181221501c9c5b9e3b0a43d5448bf8d9f19276320c2afab75eee56ebd7b54a64126962f60a50f8 AnyEvent-DNS-EtcHosts-0.0103.tar.gz"