aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-regexp-common-net-cidr/APKBUILD
blob: 9ddd359d109c89d71e6bf4501a2b19a10343b897 (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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-regexp-common-net-cidr
pkgver=0.03
pkgrel=0
pkgdesc="Regexp::Common::net::CIDR perl module"
url="http://search.cpan.org/dist/Regexp-Common-net-CIDR/"
arch="noarch"
license="GPL-2.0 or Artistic"
depends="perl perl-regexp-common"
makedepends="perl-dev perl-module-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BP/BPS/Regexp-Common-net-CIDR-$pkgver.tar.gz"

builddir="$srcdir/Regexp-Common-net-CIDR-$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="0ca3d188ea4197af2981c2910e5f5a2d412d760251ee7ad9d688aa6e60f4dfdbf5583d599b1af8698ed7c740c252f0e8bda38de254f03a699122de1c1f598f20  Regexp-Common-net-CIDR-0.03.tar.gz"