diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-05 01:16:36 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-05 01:39:35 +0000 |
commit | b1274f164d3742fc5a47f4ab85a91baef72338ec (patch) | |
tree | 7095e084822242b5cff89ac35bb3dee624642067 /community/perl-text-diff/APKBUILD | |
parent | 4c6f8e1fdf89d2899b81dd6a680a65e89e20b7a9 (diff) | |
download | aports-b1274f164d3742fc5a47f4ab85a91baef72338ec.tar.bz2 aports-b1274f164d3742fc5a47f4ab85a91baef72338ec.tar.xz |
community/perl-[t-y]: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- rename _builddir to builddir
Diffstat (limited to 'community/perl-text-diff/APKBUILD')
-rw-r--r-- | community/perl-text-diff/APKBUILD | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/community/perl-text-diff/APKBUILD b/community/perl-text-diff/APKBUILD index 5cfdfe2722..2b25867abd 100644 --- a/community/perl-text-diff/APKBUILD +++ b/community/perl-text-diff/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-text-diff _pkgreal=Text-Diff pkgver=1.45 -pkgrel=0 +pkgrel=1 pkgdesc="Perform diffs on files and record sets" url="http://search.cpan.org/dist/Text-Diff/" arch="noarch" @@ -16,21 +16,26 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + 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 } |