blob: 13a00611bdaf2d2d4b3c82871500e24c9ccefa18 (
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
42
43
44
45
46
47
|
# 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.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"
|