aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-xml-canonicalizexml/APKBUILD
blob: 77df9abdfe0045aa3420091616373d6f47f0c568 (plain)
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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-xml-canonicalizexml
_pkgreal=XML-CanonicalizeXML
pkgver=0.10
pkgrel=4
pkgdesc="Perl extension for inclusive (1.0 and 1.1) and exclusive canonicalization of XML using libxml2"
url="https://metacpan.org/release/XML-CanonicalizeXML/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="libxml2-dev perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SJ/SJZASADA/XML-CanonicalizeXML-$pkgver.tar.gz"
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="80a724b4bf11b6a69ae245f775735d286a700d4036d086cffbe47b498e486a42a68b1fc41cfa0bfdfe2c019218d4b623af321f98bdf3d9565a54443db7b2698a  XML-CanonicalizeXML-0.10.tar.gz"