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