aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-xml-tidy/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-xml-tidy/APKBUILD')
-rw-r--r--community/perl-xml-tidy/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/perl-xml-tidy/APKBUILD b/community/perl-xml-tidy/APKBUILD
new file mode 100644
index 0000000000..51fd74efc5
--- /dev/null
+++ b/community/perl-xml-tidy/APKBUILD
@@ -0,0 +1,34 @@
+# 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"
+depends="perl-xml-xpath perl-math-basecnv"
+makedepends="perl-dev 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"