summaryrefslogtreecommitdiff
path: root/p5-data-validate-ip/Pkgfile
blob: 2987209065abeb11c6b4226bde0dd3abfbe0705d (plain)
    1 # Description: IPv4 and IPv6 validation methods
    2 # URL: https://metacpan.org/release/Data-Validate-IP
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: p5-netaddr-ip
    5 
    6 name=p5-data-validate-ip
    7 version=0.31
    8 release=1
    9 source=(https://www.cpan.org/modules/by-module/Data/Data-Validate-IP-$version.tar.gz)
   10 
   11 build() {
   12 	cd Data-Validate-IP-$version
   13 	perl Makefile.PL INSTALLDIRS=vendor
   14 	make
   15 	make DESTDIR=$PKG install
   16 
   17 	# Remove perlcrap
   18 	find $PKG -type f \( \
   19 		-name '.packlist' -or \
   20 		-name '*.bs' -or \
   21 		-name 'autosplit.ix' -or \
   22 		-name 'perllocal.pod' \) -delete
   23 
   24 	# Remove empty directories
   25 	find $PKG -depth -empty -exec rm -rf {} \;
   26 }

Generated by cgit