aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-sys-virt/APKBUILD
blob: 9581f69116fdb3ba737d7d6aecc4af49abdd5090 (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.8.0
pkgrel=0
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="de0148f0adb5c67add57874c1bd194ffdedae00e6dd8a22d1c19f99677c28a72666cc96dd889fd49dbb1e7529b4a1ee1e59c8c6e5a95ad85cc4d043f297b6a26  Sys-Virt-v6.8.0.tar.gz"