aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-cisco-copyconfig/APKBUILD
blob: ee626b33d47aba1dc819c7ddd937034ba4b65bc9 (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 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-cisco-copyconfig
_pkgreal=Cisco-CopyConfig
pkgver=1.4
pkgrel=2
pkgdesc="Perl module for Cisco-CopyConfig"
url="https://metacpan.org/release/Cisco-CopyConfig/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-net-snmp"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://www.cpan.org/authors/id/A/AA/AARONSCA/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	cd "$builddir"
	if [ -e Build.PL ]; then
		perl Build.PL installdirs=vendor
	else
		PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	fi
}

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="80ee4e38bb3db9778bed6469fd2d650f74e793380f26c3e0d28e91d35f434ffb7c8fe8e99c98e4d72b2c3b2df931ac0776a83e0cbed977fb0b60f12a6007516b  Cisco-CopyConfig-1.4.tgz"