# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-snmp-info _pkgreal=SNMP-Info pkgver=3.38 pkgrel=0 pkgdesc="OO Interface to Network devices and MIBs through SNMP" url="http://search.cpan.org/dist/SNMP-Info/" arch="noarch" license="BSD" cpandepends="net-snmp-perl" cpanmakedepends="" cpancheckdepends="" depends="$cpandepends" makedepends="perl-dev perl-module-build $cpanmakedepends" checkdepends="$cpancheckdepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') perl Build.PL installdirs=vendor } build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') ./Build } package() { cd "$builddir" ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { cd "$builddir" ./Build test } sha512sums="b45fd76214f47975e2f0df86ce77fcf4b448fc9691f7f39b767d4ca72b312aa9708b4a10ed326364f8445c890e9a7143edafccb5e05eb084b48085f96e1d5efc SNMP-Info-3.38.tar.gz"