PKGBUILDs/community/perl-net-snmp/PKGBUILD
2009-10-09 21:15:33 -05:00

21 lines
643 B
Bash

# Contributor: William Rea <sillywilly@gmail.com>
pkgname=perl-net-snmp
pkgver=5.2.0
pkgrel=2
pkgdesc="Perl interface to SNMP"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/SNMP.pm"
license=("PerlArtistic")
depends=('perl')
source=(http://search.cpan.org/CPAN/authors/id/D/DT/DTOWN/Net-SNMP-$pkgver.tar.gz)
md5sums=('0e717723f843ab22a93248833f3ebff7')
build() {
cd $startdir/src/Net-SNMP-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
make install DESTDIR=$startdir/pkg || return 1
find $startdir/pkg -name '.packlist' -delete
find $startdir/pkg -name '*.pod' -delete
}