aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-snmp-session/APKBUILD
blob: db834626ba3dca09f69999eed48e5c8e796a4d13 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-snmp-session
_name=SNMP_Session
pkgver=1.13
pkgrel=4
pkgdesc="A SNMP Perl Module"
url="https://github.com/sleinen/snmp-session"
arch="noarch"
license="PerlArtistic"
depends="perl"
# 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"
builddir="$srcdir/$_name-$pkgver"

build() {
	perl Makefile.PL INSTALLDIRS=vendor
	make MAN1EXT=1p MAN3EXT=3pm
}

package() {
	make install MAN1EXT=1p MAN3EXT=3pm DESTDIR="$pkgdir"
	find "$pkgdir" -name perllocal.pod -delete
	find "$pkgdir" -name .packlist -delete
}

sha512sums="5185739cfe1c37f7087136b23f3fb1eb5daa9d1ab2036d8bbf36438b0a9ede354daca73567529c96297f2621842dfb4c7832101306cee1540ee950b4d0bfe6a8  SNMP_Session-1.13.tar.gz"