blob: 1008137cc3b3606484ae7ed13ee0aef180d9ba15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $Id: PKGBUILD 143974 2011-12-01 07:52:54Z andrea $
# Maintainer:
# Contributor: Dale Blount <dale@archlinux.org>
# Contributor: Francois Charette <francois.archlinux.org>
pkgname=perl-netaddr-ip
_realname=NetAddr-IP
pkgver=4.058
pkgrel=1
pkgdesc="Perl module to manage IP addresses and subnets"
arch=(i686 x86_64 'mips64el')
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
url="http://search.cpan.org/dist/${_realname}/"
source=(http://search.cpan.org/CPAN/authors/id/M/MI/MIKER/${_realname}-${pkgver}.tar.gz)
md5sums=('8829958dd84a8b36e3cd10347564739d')
build() {
cd ${srcdir}/${_realname}-${pkgver}
# install module in vendor directories.
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd ${srcdir}/${_realname}-${pkgver}
make test
}
package() {
cd ${srcdir}/${_realname}-${pkgver}
make DESTDIR=${pkgdir} install
# remove perllocal.pod and .packlist
find ${pkgdir} -name perllocal.pod -delete
find ${pkgdir} -name .packlist -delete
}
|