diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-12-06 12:11:53 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-12-06 12:18:06 +0000 |
commit | 5fcf9eb2802c57bb047905e3047d391142e52041 (patch) | |
tree | cda92d76381d7760edf5ae98c75650d62aca76a9 /community/perl-cisco-copyconfig | |
parent | e5ab1fc88b1ff6b7c01adbb6dccf39b70f6cc16d (diff) | |
download | aports-5fcf9eb2802c57bb047905e3047d391142e52041.tar.bz2 aports-5fcf9eb2802c57bb047905e3047d391142e52041.tar.xz |
community/perl-c*: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- Rename _builddir to builddir
- Add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-cisco-copyconfig')
-rw-r--r-- | community/perl-cisco-copyconfig/APKBUILD | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/community/perl-cisco-copyconfig/APKBUILD b/community/perl-cisco-copyconfig/APKBUILD index a84681494d..0210372ede 100644 --- a/community/perl-cisco-copyconfig/APKBUILD +++ b/community/perl-cisco-copyconfig/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-cisco-copyconfig _pkgreal=Cisco-CopyConfig pkgver=1.4 -pkgrel=0 +pkgrel=1 pkgdesc="Perl module for Cisco-CopyConfig" url="http://search.cpan.org/dist/Cisco-CopyConfig/" arch="noarch" @@ -18,27 +18,30 @@ source="http://www.cpan.org/authors/id/A/AA/AARONSCA/$_pkgreal-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - default_prepare || return 1 + default_prepare cd "$builddir" if [ -e Build.PL ]; then - perl Build.PL installdirs=vendor || return 1 + perl Build.PL installdirs=vendor else - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor fi } build() { cd "$builddir" - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install 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" |