#Maintainer: George Vlahavas pkgname=perl-net-ip pkgver=1.25 pkgrel=1gv arch=i486 source=(http://search.cpan.org/CPAN/authors/id/M/MA/MANU/Net-IP-$pkgver.tar.gz) docs=("readme" "install" "copying" "changelog*" "authors" "news" "todo" "license" "maintainers" "copyright.pod") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-net-ip (Perl extension for manipulating IPv4/IPv6 addresses)" "This module provides functions to deal with IPv4/IPv6 addresses. The" "module can be used as a class, allowing the user to instantiate IP" "objects, which can be single IP addresses, prefixes, or ranges of" "addresses. There is also a procedural way of accessing most of the" "functions. Most subroutines can take either IPv4 or IPv6 addresses" "transparently." ) build() { cd $startdir/src/Net-IP-$pkgver perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1 # Remove perllocal.pod and .packlist if present in the package ( for i in perllocal.pod .packlist; do find $startdir/pkg -name "$i" -exec rm -rf {} \; done ) || exit 1 }