blob: 3f26ab31a51785ed9401ddc0e63aaf8a5993c087 (
plain)
1 # Description: Perl module to manage IP addresses and subnet
2 # URL: https://metacpan.org/release/NetAddr-IP
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4
5 name=p5-netaddr-ip
6 version=4.079
7 release=2
8 source=(https://search.cpan.org/CPAN/authors/id/M/MI/MIKER/NetAddr-IP-$version.tar.gz)
9
10 build() {
11 cd NetAddr-IP-$version
12 perl Makefile.PL INSTALLDIRS=vendor
13 make OPTIMIZE="$CFLAGS"
14 make install DESTDIR=$PKG
15 # Remove perlcrap
16 find $PKG \
17 -name .packlist -or \
18 -name '*.bs' -or \
19 -name perllocal.pod | xargs rm
20 # Remove empty directories
21 find $PKG -depth -empty -exec rm -rf {} \;
22 }
|