aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-cidr/APKBUILD
blob: 4dc4a96d28bcd67bde39ed1e5df67e7a44dd8a12 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-net-cidr
_pkgname=Net-CIDR
pkgver=0.19
pkgrel=0
pkgdesc="Manipulate IPv4/IPv6 netblocks in CIDR notation"
url="http://search.cpan.org/dist/Net-CIDR/"
arch="noarch"
license="GPL+ or Artistic"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MR/MRSAM/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir/$_pkgname-$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="2872fd4cd2dffdc56a3ad3ce4a2cb93221f2aae86c9f6875bd4a0323313c0dfa205ac9cd32173594aecfccd0d9b9c32123c3c8da3faf4109734aed43f5418820  Net-CIDR-0.19.tar.gz"