aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-xml-libxml/APKBUILD
blob: a5c9ce0276f4dcf9b95c80c28c87af465b7ed57e (plain) (blame)
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
34
35
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-xml-libxml
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=XML-LibXML
pkgver=2.0206
pkgrel=1
pkgdesc="Interface to Gnome libxml2 xml parsing and DOM library"
url="https://metacpan.org/release/XML-LibXML/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-xml-sax perl-xml-sax-base perl-xml-namespacesupport"
makedepends="perl-dev perl-alien-libxml2 perl-alien-build libxml2-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-$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="113a2e21ced86fdb0bb01f3fa958b110539a3a5f2cf82b2ed18e7d5a3ad437a051353103f42f324a2e148996c9a0abc7fff193b67552491a7212b69a7ba4d952  XML-LibXML-2.0206.tar.gz"