diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-21 07:56:40 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-21 07:56:40 +0000 |
commit | 6e2a88dddb71f1138510a6757aff2e7c0f5a2148 (patch) | |
tree | d7eaa1bbaf6b76a8082e6f3402d5905200796e99 /testing | |
parent | 53ec0bbc986bfb74327dba24e24f80fd47ab8def (diff) | |
download | aports-6e2a88dddb71f1138510a6757aff2e7c0f5a2148.tar.bz2 aports-6e2a88dddb71f1138510a6757aff2e7c0f5a2148.tar.xz |
testing/perl-cisco-copyconfig: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-cisco-copyconfig/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/perl-cisco-copyconfig/APKBUILD b/testing/perl-cisco-copyconfig/APKBUILD new file mode 100644 index 0000000000..a84681494d --- /dev/null +++ b/testing/perl-cisco-copyconfig/APKBUILD @@ -0,0 +1,44 @@ +# 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=0 +pkgdesc="Perl module for Cisco-CopyConfig" +url="http://search.cpan.org/dist/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 || return 1 + + cd "$builddir" + if [ -e Build.PL ]; then + perl Build.PL installdirs=vendor || return 1 + else + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + fi +} + +build() { + cd "$builddir" + make && make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="3f59b3c18e42ffcbe3a9726e7dac3182 Cisco-CopyConfig-1.4.tgz" +sha256sums="a2e1bbe2c3cac987c6947e76ca92167f569dfce45c788d00a6274dfa998a0aa9 Cisco-CopyConfig-1.4.tgz" +sha512sums="80ee4e38bb3db9778bed6469fd2d650f74e793380f26c3e0d28e91d35f434ffb7c8fe8e99c98e4d72b2c3b2df931ac0776a83e0cbed977fb0b60f12a6007516b Cisco-CopyConfig-1.4.tgz" |