# Automatically generated by apkbuild-cpan, template 3 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-data-validate-ip #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Data-Validate-IP pkgver=0.31 pkgrel=1 pkgdesc="IPv4 and IPv6 validation methods" url="https://metacpan.org/release/Data-Validate-IP/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-netaddr-ip" checkdepends="perl-test-requires" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Data-Validate-IP-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" # secfixes: # 0.30-r0: # - CVE-2021-29662 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=" 22ea6a8673fa07d405cb2f8645bd019265abf4104057c73d0399951a837549cedb97737f50b2e9e605202679c85ae5a7b7a24dd8d9fd8736624551b0b41fd6d8 Data-Validate-IP-0.31.tar.gz "