From b1274f164d3742fc5a47f4ab85a91baef72338ec Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Sun, 5 Nov 2017 01:16:36 +0000 Subject: community/perl-[t-y]: modernize APKBUILD Changes: - Move tests to check() - Remove return 1 - rename _builddir to builddir --- community/perl-text-diff/APKBUILD | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'community/perl-text-diff/APKBUILD') 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 } -- cgit v1.2.3