summaryrefslogtreecommitdiff
path: root/main/perl-tree-dag_node/APKBUILD
blob: 1de5f1f8b812b5178a8b08a1446d99f7f1f0292d (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-tree-dag_node
_pkgreal=Tree-DAG_Node
pkgver=1.29
pkgrel=0
pkgdesc="An N-ary tree"
url="http://search.cpan.org/dist/Tree-DAG_Node/"
arch="noarch"
license="Artistic-2.0"
cpandepends="perl-file-slurp-tiny"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RS/RSAVAGE/Tree-DAG_Node-$pkgver.tgz"

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

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

build() {
	cd "$_builddir"
	make && make test
}

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

md5sums="0d2c2f7cb7f12afafd28bbab75e15442  Tree-DAG_Node-1.29.tgz"
sha256sums="2d04eb011aa06cee633c367d1f322b8d937020fde5d5393fad6a26c93725c4a8  Tree-DAG_Node-1.29.tgz"
sha512sums="ec5ef67834360a0931bf742f5814b92ecdacf3751801028c85485f3c51c21a139d2095974b1df65aafbb24e78611d92b013c9473efd6c24381c54b2d698d3b42  Tree-DAG_Node-1.29.tgz"