# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=perl-net-cidr _pkgname=Net-CIDR pkgver=0.20 pkgrel=0 pkgdesc="Manipulate IPv4/IPv6 netblocks in CIDR notation" url="https://metacpan.org/release/Net-CIDR" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/MR/MRSAM/Net-CIDR-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="e00fd79bc21e9e56e74cb8de90372daf12e23a2be9a3cbfe328c2d72b7a280faba8368d89f8df11c79e2be47874b24f225504747c468498950ff33c9996cc314 Net-CIDR-0.20.tar.gz"