aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-snmp-info/APKBUILD
blob: 9d71484a1b058098e89a5e238846973cdeb6ce95 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-snmp-info
_pkgreal=SNMP-Info
pkgver=3.05
pkgrel=0
pkgdesc="Object Oriented Perl5 Interface to Network devices and MIBs through SNMP. "
url="http://search.cpan.org/dist/SNMP-Info/"
arch="noarch"
license="bsd"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends net-snmp-perl"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="7a183aecc831746494248af443e3d8c8  SNMP-Info-3.05.tar.gz"
sha256sums="4ad0ee992763b6fa6904751318259f6405daefa4b4ce88de54adfc5177233a88  SNMP-Info-3.05.tar.gz"
sha512sums="3a8f840e0ecdf6e543c45c1638b5bbb0488217347181d2c257cd1d92525b52e1bdf81dc14a4d98b5a0f202d2fb90352dd319ee45b00e7571b36ecbe9732d0d5f  SNMP-Info-3.05.tar.gz"