2022-02-19 19:45:53 +00:00

37 lines
1.1 KiB
Plaintext

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-xml-dom
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=XML-DOM
pkgver=1.46
pkgrel=1
pkgdesc="Perl module for XML-DOM"
url="https://metacpan.org/release/XML-DOM/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-xml-regexp perl-xml-parser perl-libwww perl-libxml-perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TJ/TJMATHER/XML-DOM-$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="
0fc96571996262bb0a99bd5f85e5d9e0f9c71c604c46c74129f0f560aa2749f7b945c591bfc13b9178d2b8d83826d5306f4ac71db33b51c55ce4d76398bab13d XML-DOM-1.46.tar.gz
"