aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-04-24 08:18:29 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-04-24 08:18:29 +0000
commit7296f6430d826bf41095c6f08f5a80098ec4ce39 (patch)
tree729cca7ad4ffb40730fe650a919df820b697acd1
parent2912c97cf2746c5a6137db4daa68b4c3d064e1c4 (diff)
downloadaports-7296f6430d826bf41095c6f08f5a80098ec4ce39.tar.bz2
aports-7296f6430d826bf41095c6f08f5a80098ec4ce39.tar.xz
community/perl-config-any: upgrade to 0.32, modernize APKBUILD
-rw-r--r--community/perl-config-any/APKBUILD18
1 files changed, 11 insertions, 7 deletions
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 <fcolista@alpinelinux.org>
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"