aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-snmp-info/APKBUILD
blob: 5c29a2ae69312434b4845f5513f37e401f62ff3d (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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-snmp-info
_pkgreal=SNMP-Info
pkgver=3.70
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"
cpandepends="net-snmp-perl"
depends="$cpandepends perl-netaddr-ip"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/O/OL/OLIVER/SNMP-Info-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL installdirs=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	./Build
}

package() {
	./Build install destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

check() {
	./Build test
}

sha512sums="9f306340e5af3ad8493c717af294caf515bee0a6dd94255ce7026c38fadf3da25538bae692380be7d84c3ab1ab52dc1ae7aafa36a8c56a42fc11c7307a2e45c8  SNMP-Info-3.70.tar.gz"