blob: 7633de4c3d1bb97578cc6dcd8f3410b809ef809d (
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
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-net-ipv4addr
_realname=Net-IPv4Addr
pkgver=0.10
pkgrel=2
pkgdesc="Perl extension for manipulating IPv4 addresses"
url="http://search.cpan.org/~frajulac/Net-IPv4Addr/"
arch="noarch"
license="PerlArtistic"
depends="perl "
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/F/FR/FRAJULAC/$_realname-$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"
build() {
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="66381f9be27c010721970d1af245885379bcc0b57c4c1179fc00e89a53a2d53e7836789b13d4c5f0079fac63d7987e12ee71f3168517ea5e1064d5fe1f7455af Net-IPv4Addr-0.10.tar.gz"
|