aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-tree-dag_node/APKBUILD
blob: 93c4de6316b2a8b3d3dc05045b8d2dce32fd5cf2 (plain) (blame)
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
# 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.31
pkgrel=1
pkgdesc="An N-ary tree"
url="https://metacpan.org/release/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="https://cpan.metacpan.org/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
}

sha512sums="6821a146c55887a8973a8f61512805a3d209bb855f5b2f121cbac11a5fe685073019b958837289e781d1c294212c387bdb8434499712a39ab6b74f7ca2ccaa74  Tree-DAG_Node-1.31.tgz"