aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-net-netmask/APKBUILD
blob: d1cbd6c77a46dd6b31df1273d00d46da11b21796 (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: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=perl-net-netmask
_realname=Net-Netmask
pkgver=1.9022
pkgrel=1
pkgdesc="Perl extension to parse, manipulate, and lookup IP network blocks"
url="http://search.cpan.org/~muir/Net-Netmask-1.9016/"
arch="noarch"
license="PerlArtistic"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MU/MUIR/modules/$_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="85778356c0eb5047a1f8ce9883fe61dec4f54180571eefff0d08a723f6f8f828b5c6a52015de751bc13fc340275a5bc220668a37086bc4a62f164ed93f6e087f  Net-Netmask-1.9022.tar.gz"