aports/testing/perl-snmp-info/APKBUILD

42 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-snmp-info
pkgver=3.972002
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=SNMP-Info
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 perl-regexp-common"
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
"
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 \
--create_packlist=0
./Build
}
check() {
./Build test
}
package() {
./Build install --destdir="$pkgdir"
}
sha512sums="
b796ab350720d4691b6d0c7a7160941f52df2098086444bd8e62984799c8193fe7d9b73c32b32e2a627803f70bd7b2f331021455b903c46289befddcf54a2526 SNMP-Info-3.972002.tar.gz
"