aboutsummaryrefslogblamecommitdiffstats
path: root/testing/perl-xml-tidy/APKBUILD
blob: a0ed53b3b4408a7a2b77f5ee7927eea77ec605a8 (plain) (tree)
1
2
3
4
5
6
7





                                                      
        







                                                      




















                                                                                                                                                                
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-xml-tidy
_pkgreal=XML-Tidy
pkgver=1.20
pkgrel=1
pkgdesc="tidy indenting of XML documents"
url="https://metacpan.org/release/XML-Tidy/"
arch="noarch"
license="GPL-3.0-only"
cpandepends="perl-xml-xpath perl-math-basecnv"
cpanmakedepends="perl-test-pod perl-test-pod-coverage"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
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"