aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-metrics-any/APKBUILD
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-05-25 19:57:15 +0000
committerLeo <thinkabit.ukim@gmail.com>2020-05-26 04:42:21 +0000
commit09ad9dafe37a970fa9cc617fa2c330e8c875b93a (patch)
tree9cf01afdee7f99284484975a6e12718a243cbfd8 /testing/perl-metrics-any/APKBUILD
parent9a46f8f43b18e4e686145e3d75eda63d2973db51 (diff)
downloadaports-09ad9dafe37a970fa9cc617fa2c330e8c875b93a.tar.gz
aports-09ad9dafe37a970fa9cc617fa2c330e8c875b93a.tar.bz2
aports-09ad9dafe37a970fa9cc617fa2c330e8c875b93a.tar.xz
testing/perl-metrics-any: new aport
Diffstat (limited to 'testing/perl-metrics-any/APKBUILD')
-rw-r--r--testing/perl-metrics-any/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/perl-metrics-any/APKBUILD b/testing/perl-metrics-any/APKBUILD
new file mode 100644
index 0000000000..e7b176016f
--- /dev/null
+++ b/testing/perl-metrics-any/APKBUILD
@@ -0,0 +1,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.05
+pkgrel=0
+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="89a84db29dade3e58fefcf2336865bb2ecb8e99349fe1a628080d092c4e75e7fa77a5e83fc4fef01d7a69b8348234228b34e500c6dc29250535d417f913abd34 Metrics-Any-0.05.tar.gz"