aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-data-validate-ip/APKBUILD
blob: 1f9da9300e55d962442766219e15dcbee0a0fa15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-data-validate-ip
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Data-Validate-IP
pkgver=0.27
pkgrel=0
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"
makedepends="perl-dev"
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"

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="5a93f730d53e7adcac4fe5e227b69a44e58cdc94b0081d79978547263095e97c3690c8c6fc6664fc8e4b230ab4c360beda22e6600a3c7abe5e61129ee70553b8  Data-Validate-IP-0.27.tar.gz"