# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-tree-dag_node #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Tree-DAG_Node pkgver=1.32 pkgrel=1 pkgdesc="An N-ary tree" url="https://metacpan.org/release/Tree-DAG_Node/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-file-slurp-tiny" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/Tree-DAG_Node-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="3ab6b48495abd09643555cf0160d00db39dc7ce576299b24eb4bc39e799ba478d88f863d8b2ec95853dc173e97c6efc3faff14e1d7c080f5166150f6fce2f817 Tree-DAG_Node-1.32.tgz"