# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-cisco-copyconfig
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Cisco-CopyConfig
pkgver=1.4
pkgrel=5
pkgdesc="Perl module for Cisco-CopyConfig"
url="https://metacpan.org/release/Cisco-CopyConfig/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-net-snmp"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AA/AARONSCA/Cisco-CopyConfig-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

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