aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-sys-virt/APKBUILD
blob: ec4fc27d467a17f3e14d14017ac1540db69d8548 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-sys-virt
_pkgreal=Sys-Virt
pkgver=6.3.0
pkgrel=1
pkgdesc="Perl module for Sys-Virt"
url="https://metacpan.org/release/Sys-Virt"
arch="all !s390x" # libvirt->polkit->mozjs78->rust
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="7f224523cd08838b00b4e06b729a0cfc9570d3be469d251c114f60832cc024f4ad61d8836d7ad0e85284961f227fe2ded1ac5a891465a1d62d4e14389ad3e8e2  Sys-Virt-v6.3.0.tar.gz"