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-trigger | |
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-trigger')
-rw-r--r-- | community/perl-class-trigger/APKBUILD | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/community/perl-class-trigger/APKBUILD b/community/perl-class-trigger/APKBUILD index 92e61af7bb..0f4984deee 100644 --- a/community/perl-class-trigger/APKBUILD +++ b/community/perl-class-trigger/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-class-trigger _pkgreal=Class-Trigger pkgver=0.14 -pkgrel=1 +pkgrel=2 pkgdesc="Mixin to add / call inheritable triggers" url="http://search.cpan.org/dist/Class-Trigger/" arch="noarch" @@ -16,21 +16,28 @@ makedepends="perl-dev $cpanmakedepends perl-module-install" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/$_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 } |