aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-metrics-any/APKBUILD
blob: 793a32390ee9fbd130f8a20d6235365ca11f8870 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-metrics-any
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Metrics-Any
pkgver=0.06
pkgrel=1
pkgdesc="abstract collection of monitoring metrics"
url="https://metacpan.org/release/Metrics-Any/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev perl-module-build"
checkdepends="perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Metrics-Any-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="dd0600e01340b564f00629e15c3b935a84ef6e2d88c0695e51c321af96b05cec4ad16ec5636ab39847dc4f82ca541989e77f2f7f7bab8417c5a3b13169c50d49  Metrics-Any-0.06.tar.gz"