void-packages/srcpkgs/perl-XML-LibXML/template

22 lines
818 B
Bash

# Template file for 'perl-XML-LibXML'
pkgname=perl-XML-LibXML
version=2.0209
revision=1
build_style=perl-module
hostmakedepends="perl perl-Alien-Build perl-Alien-Libxml2"
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=b4a5abbcd689aa2fbbc8b7b45339e961c4984e48108494eb6c282b4748222425
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
}