# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-sys-virt _pkgreal=Sys-Virt pkgver=5.8.0 pkgrel=0 pkgdesc="Perl module for Sys-Virt" url="https://metacpan.org/release/Sys-Virt" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" cpanmakedepends="perl-xml-xpath perl-test-pod-coverage perl-test-pod perl-cpan-changes perl-module-build" depends="perl" makedepends="$cpanmakedepends perl-dev libvirt yajl-dev libvirt-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/D/DA/DANBERR/Sys-Virt-v$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-v$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') perl Build.PL --installdirs=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') ./Build } check() { ./Build test } package() { ./Build install --destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="099cbdeb405dea2244f4d655d514fa3988bf3af4005395f900aa78788916d534bc73af649ad32afd644e3f759bec6cd95655a5baf95add2ed32325aab56bc2fd Sys-Virt-v5.8.0.tar.gz"