aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-monitoring-plugin/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/perl-monitoring-plugin/APKBUILD')
-rw-r--r--unmaintained/perl-monitoring-plugin/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/unmaintained/perl-monitoring-plugin/APKBUILD b/unmaintained/perl-monitoring-plugin/APKBUILD
new file mode 100644
index 0000000000..8bd39998c8
--- /dev/null
+++ b/unmaintained/perl-monitoring-plugin/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-monitoring-plugin
+_pkgreal=Monitoring-Plugin
+pkgver=0.39
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Monitoring-Plugin/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-params-validate perl-config-tiny perl-class-accessor perl-math-calc-units"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/N/NI/NIERLEIN/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="c786ada6289bda2c4380d3df3b5185d5 Monitoring-Plugin-0.39.tar.gz"
+sha256sums="5ceeaf33bc6205b847b1645a3a24cb65d1b85e19691a6333fa221c240de20c0c Monitoring-Plugin-0.39.tar.gz"
+sha512sums="7bdba894cffc0839586e52f3667157cf578e94734ddc0ccd05899f631271e5b69e9cbfe4b2fb59f68b45e1d13afc82b095b65e249527f2c448a38b93e510a05c Monitoring-Plugin-0.39.tar.gz"