# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-xml-libxml-simple _pkgreal=XML-LibXML-Simple pkgver=1.01 pkgrel=2 pkgdesc="XML::LibXML based XML::Simple clone" url="https://metacpan.org/release/XML-LibXML-Simple" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-file-slurp-tiny perl-xml-libxml" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/MA/MARKOV/XML-LibXML-Simple-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } check() { make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="e0de7a3c70facbb1dd8bb9278b242eae5e390b6495e529d2b94fce620dadc8fb0ed773b0a4a2d4c7f99359bceca0cbac7316d9e412736bf54754b2602cee285c XML-LibXML-Simple-1.01.tar.gz"