diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-01-10 15:25:46 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-01-10 15:25:46 +0000 |
commit | 2b1be7d54c0e8d901a5166e0c071e9b1ca21146e (patch) | |
tree | 79f20610e89faa6281dc02d6f0b2b36453728e9b | |
parent | 35d24c34c6f25c6a4debd10853e7eb3b812af79d (diff) | |
download | aports-2b1be7d54c0e8d901a5166e0c071e9b1ca21146e.tar.bz2 aports-2b1be7d54c0e8d901a5166e0c071e9b1ca21146e.tar.xz |
testing/perl-monitoring-plugin: new aport
-rw-r--r-- | testing/perl-monitoring-plugin/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-monitoring-plugin/APKBUILD b/testing/perl-monitoring-plugin/APKBUILD new file mode 100644 index 0000000000..8bd39998c8 --- /dev/null +++ b/testing/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" |