blob: 6cced2024fbe158accd15f956ead84cae0331c63 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-snmp-session
_name=SNMP_Session
pkgver=1.13
pkgrel=2
pkgdesc="A SNMP Perl Module"
url="http://code.google.com/p/snmp-session/"
arch="noarch"
license="PerlArtistic"
depends="perl"
makedepends="perl-dev"
# note this project has moved to: https://github.com/sleinen/snmp-session/
# but the new location has no release tags, so fall back to archives for now
source="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/snmp-session/$_name-$pkgver.tar.gz"
build () {
cd "$srcdir"/$_name-$pkgver
perl Makefile.PL INSTALLDIRS=vendor || return 1
make MAN1EXT=1p MAN3EXT=3pm || return 1
}
package() {
cd "$srcdir"/$_name-$pkgver
make install MAN1EXT=1p MAN3EXT=3pm DESTDIR="$pkgdir" || return 1
find "$pkgdir" -name perllocal.pod -delete
find "$pkgdir" -name .packlist -delete
}
md5sums="055e1065babf55f1f8606329c6bdb947 SNMP_Session-1.13.tar.gz"
|