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

22 lines
783 B
Bash

# Template file for 'perl-XML-LibXML'
pkgname=perl-XML-LibXML
version=2.0134
revision=12
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=f0bca4d0c2da35d879fee4cd13f352014186cedab27ab5e191f39b5d7d4f46cf
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
}