aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-snmp-info/APKBUILD
blob: f3a87239095f89e7e0af144b5e4f507c3bb65473 (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 3
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-snmp-info
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=SNMP-Info
pkgver=3.89
pkgrel=0
pkgdesc="OO Interface to Network devices and MIBs through SNMP"
url="https://metacpan.org/release/SNMP-Info/"
arch="noarch"
license="BSD-3-Clause"
depends="perl net-snmp-perl perl-netaddr-ip net-snmp"
makedepends="perl-module-build"
checkdepends="
	perl-module-find perl-class-inspector perl-test-mockobject perl-hook-lexwrap
	perl-test-distribution perl-path-class perl-file-slurper perl-test-class-most
	perl-test-exception perl-test-simple
	"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/O/OL/OLIVER/SNMP-Info-$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="
aa29a1d6773cc1eba61510676d607ae6b6109d91bf2d1243de4f74d0cc816159f918cb8da26adaf28019ebe824664ca8e0ec4668e5e1dc1b831fb2c180605c9a  SNMP-Info-3.89.tar.gz
"