# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-xml-tidy _pkgreal=XML-Tidy pkgver=1.20 pkgrel=4 pkgdesc="tidy indenting of XML documents" url="https://metacpan.org/release/XML-Tidy/" arch="noarch" license="GPL-3.0-only" depends="perl perl-xml-xpath perl-math-basecnv" makedepends="perl-test-pod perl-test-pod-coverage" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/P/PI/PIP/XML-Tidy-$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="41f2578932d7452c67f2aacee9e3600ec702178d239b46ed44e71b7ecbe4ab231ee8ccff17c671ce2de3792adc565d78d64db25f0d1bb2c7f83d50b6be04d218 XML-Tidy-1.20.tgz"