From 7296f6430d826bf41095c6f08f5a80098ec4ce39 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Mon, 24 Apr 2017 08:18:29 +0000 Subject: community/perl-config-any: upgrade to 0.32, modernize APKBUILD --- community/perl-config-any/APKBUILD | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'community/perl-config-any') diff --git a/community/perl-config-any/APKBUILD b/community/perl-config-any/APKBUILD index c01dd1ebf3..7f5a7c5d4e 100644 --- a/community/perl-config-any/APKBUILD +++ b/community/perl-config-any/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: Francesco Colista pkgname=perl-config-any _pkgreal=Config-Any -pkgver=0.30 +pkgver=0.32 pkgrel=0 pkgdesc="Load configuration from different file formats, transparently" url="http://search.cpan.org/dist/Config-Any/" @@ -15,23 +15,27 @@ depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" -_builddir="$srcdir/$_pkgreal-$pkgver" +check() { + cd "$builddir" + make test +} prepare() { - cd "$_builddir" + cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" - make && make test + cd "$builddir" + make } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -sha512sums="798165360ff5dd0af2d7720f6b4372dc4fc7eba464fbb8635606aa9d16a86e88f91dcaf22ba3dc4aba52303b695391acb2540f7eac97223af69064b6322b600d Config-Any-0.30.tar.gz" +sha512sums="7c6fa9f341b1392ffd71babca688e3fb8bcd5f6330fe15aefb36ac002af83ed3674667dcddd9a500404bc4e019609f392c173653a8a792267fdb609e9323116c Config-Any-0.32.tar.gz" -- cgit v1.2.3