contrib/p5-data-validate-ip/Pkgfile

27 lines
648 B
Plaintext
Raw Normal View History

2019-08-31 04:38:36 +02:00
# Description: IPv4 and IPv6 validation methods
# URL: https://metacpan.org/release/Data-Validate-IP
# Maintainer: unmaintained
2019-08-31 04:38:36 +02:00
# Depends on: p5-netaddr-ip
name=p5-data-validate-ip
2022-11-29 22:42:16 +01:00
version=0.31
2019-08-31 04:38:36 +02:00
release=1
2021-04-11 07:34:00 +02:00
source=(https://www.cpan.org/modules/by-module/Data/Data-Validate-IP-$version.tar.gz)
2019-08-31 04:38:36 +02:00
build() {
cd Data-Validate-IP-$version
perl Makefile.PL INSTALLDIRS=vendor
make
make DESTDIR=$PKG install
2019-08-31 04:38:36 +02:00
# Remove perlcrap
find $PKG -type f \( \
-name '.packlist' -or \
-name '*.bs' -or \
-name 'autosplit.ix' -or \
-name 'perllocal.pod' \) -delete
2019-08-31 04:38:36 +02:00
# Remove empty directories
find $PKG -depth -empty -exec rm -rf {} \;
2019-08-31 04:38:36 +02:00
}