| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Timo Teräs <[email protected]> |
| 3 | # Maintainer: Timo Teräs <[email protected]> |
| 4 | pkgname=perl-snmp-info |
| 5 | pkgver=3.978002 |
| 6 | pkgrel=0 |
| 7 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=SNMP-Info |
| 9 | pkgdesc="OO Interface to Network devices and MIBs through SNMP" |
| 10 | url="https://metacpan.org/release/SNMP-Info/" |
| 11 | arch="noarch" |
| 12 | license="BSD-3-Clause" |
| 13 | depends="perl net-snmp-perl perl-netaddr-ip net-snmp perl-regexp-common" |
| 14 | makedepends="perl-module-build" |
| 15 | checkdepends=" |
| 16 | perl-module-find perl-class-inspector perl-test-mockobject perl-hook-lexwrap |
| 17 | perl-test-distribution perl-path-class perl-file-slurper perl-test-class-most |
| 18 | perl-test-exception |
| 19 | " |
| 20 | subpackages="$pkgname-doc" |
| 21 | source="https://cpan.metacpan.org/authors/id/O/OL/OLIVER/SNMP-Info-$pkgver.tar.gz" |
| 22 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 23 | |
| 24 | build() { |
| 25 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 26 | perl Build.PL \ |
| 27 | --installdirs=vendor \ |
| 28 | --create_packlist=0 |
| 29 | ./Build |
| 30 | } |
| 31 | |
| 32 | check() { |
| 33 | ./Build test |
| 34 | } |
| 35 | |
| 36 | package() { |
| 37 | ./Build install --destdir="$pkgdir" |
| 38 | } |
| 39 | |
| 40 | sha512sums=" |
| 41 | a8120a2b0033cb0e49b409a2eb9f4e4af6a491ba39318844ab51b6d776c03c1797ee051a0b41ea6192149d1c4cb1cd5f2574c9899338399059f8441acfafe299 SNMP-Info-3.978002.tar.gz |
| 42 | " |