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-class-accessor-lite | |
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-class-accessor-lite')
-rw-r--r-- | community/perl-class-accessor-lite/APKBUILD | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/community/perl-class-accessor-lite/APKBUILD b/community/perl-class-accessor-lite/APKBUILD index 40ea2a5a17..720e566ab4 100644 --- a/community/perl-class-accessor-lite/APKBUILD +++ b/community/perl-class-accessor-lite/APKBUILD @@ -4,8 +4,8 @@ pkgname=perl-class-accessor-lite _pkgreal=Class-Accessor-Lite pkgver=0.08 -pkgrel=0 -pkgdesc="a minimalistic variant of Class::Accessor" +pkgrel=1 +pkgdesc="A minimalistic variant of Class::Accessor" url="http://search.cpan.org/dist/Class-Accessor-Lite/" arch="noarch" license="GPL PerlArtistic" @@ -16,21 +16,28 @@ makedepends="perl-dev perl-module-install $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + default_prepare + + cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" - make && make test + cd "$builddir" + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |