aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-bind-config-parser/APKBUILD
blob: 79d9461f1b14a4d97492640fa5c6f12f548b6750 (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
39
40
41
42
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-bind-config-parser
_pkgreal=BIND-Config-Parser
pkgver=0.01
pkgrel=1
pkgdesc="Parse BIND Config file"
url="http://search.cpan.org/dist/BIND-Config-Parser/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-parse-recdescent"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MA/MATTD/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="9b2266881388e808047c452a1b616ede815e9e9349edb7d8e17ee256a8ba4054ae45caeb3f30ed3a7508093d61061e1ed3b0ade53cc19e553d12efd781e6aa65  BIND-Config-Parser-0.01.tar.gz"