mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-30 04:52:27 +01:00
community/perl-config-any: upgrade to 0.32, modernize APKBUILD
This commit is contained in:
parent
2912c97cf2
commit
7296f6430d
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user