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-dbi | |
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-dbi')
-rw-r--r-- | community/perl-class-dbi/APKBUILD | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/community/perl-class-dbi/APKBUILD b/community/perl-class-dbi/APKBUILD index 32dd7050b4..cab639dca9 100644 --- a/community/perl-class-dbi/APKBUILD +++ b/community/perl-class-dbi/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-class-dbi _pkgreal=Class-DBI pkgver=v3.0.17 -pkgrel=0 +pkgrel=1 pkgdesc="Simple Database Abstraction" url="http://search.cpan.org/dist/Class-DBI/" arch="noarch" @@ -16,21 +16,28 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/$_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 } |