aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-monitoring-plugin/APKBUILD
blob: 8bd39998c8e7606c73b3fc6d05b5a697e9de1a7f (plain)
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
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"