perl-XML-LibXML: fix cross

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-04-20 23:16:30 +02:00
parent a08eb7ed3c
commit 09661b73c9
No known key found for this signature in database
GPG key ID: 6764EC32352D0647

View file

@ -13,4 +13,10 @@ license="Artistic, GPL-1"
homepage="http://search.cpan.org/dist/${pkgname/perl-/}/"
distfiles="${CPAN_SITE}/XML/${pkgname/perl-/}-${version}.tar.gz"
checksum=721452e3103ca188f5968ab06d5ba29fe8e00e49f4767790882095050312d476
nocross="yes" # tries to execute target-compiled binary during configure
pre_configure() {
if [ -n "$CROSS_BUILD" ]; then
# Disable link and execute check for libxml2
sed -i Makefile.PL -e"s;_libxml_check_lib('xml2');1;"
fi
}