From 562bc57b582f8d4a3c659cd124fa939cf9d7deb7 Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Mon, 27 Nov 2017 13:20:49 +0000 Subject: community/perl-[a-b]*: modernize APKBUILD Changes: - Move tests to check() - Remove return 1 - Rename _builddir to builddir - Add missing default_prepare in prepare() --- community/perl-appconfig/APKBUILD | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'community/perl-appconfig') diff --git a/community/perl-appconfig/APKBUILD b/community/perl-appconfig/APKBUILD index 295b96834c..961a3ac775 100644 --- a/community/perl-appconfig/APKBUILD +++ b/community/perl-appconfig/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-appconfig _pkgreal=AppConfig pkgver=1.71 -pkgrel=0 +pkgrel=1 pkgdesc="AppConfig is a bundle of Perl5 modules for reading configuration files and parsing command line arguments." url="http://search.cpan.org/dist/AppConfig/" arch="noarch" @@ -16,24 +16,28 @@ 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" + 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 } -md5sums="7747d9241561ed5567d5e134b8648707 AppConfig-1.71.tar.gz" -sha256sums="1177027025ecb09ee64d9f9f255615c04db5e14f7536c344af632032eb887b0f AppConfig-1.71.tar.gz" sha512sums="cbd58601ce0ea6c237e86b8b013cf75e552914263f56b1ab26b8079bff75b28ca2bb35585bfaa187b611afa969767c25494d3ec2a6b3ff5d1aecd2f9ffa8df72 AppConfig-1.71.tar.gz" -- cgit v1.2.3