# Template file for 'perl-XML-LibXML'
pkgname=perl-XML-LibXML
version=2.0133
revision=1
wrksrc="${pkgname/perl-/}-${version}"
build_style=perl-module
hostmakedepends="perl"
makedepends="${hostmakedepends} libxml2-devel perl-XML-SAX perl-XML-NamespaceSupport"
depends="perl>=5.20 perl-XML-SAX perl-XML-NamespaceSupport"
short_desc="Perl extension interface to libxml2"
maintainer="Martijn van Buul <martijn.van.buul@gmail.com>"
license="Artistic-1.0-Perl, GPL-1.0-or-later"
homepage="https://metacpan.org/release/XML-LibXML"
distfiles="${CPAN_SITE}/XML/${pkgname/perl-/}-${version}.tar.gz"
checksum=5f25c5744424b2e9364f71f607e96c19e2c6fa188baeda34894d2336d30e4d9a

pre_configure() {
	if [ "$CROSS_BUILD" ]; then
		# Disable link and execute check for libxml2
		sed -i Makefile.PL -e"s;_libxml_check_lib('xml2');1;"
	fi
}
