From 8afb6ffbf97bc59a6b97d110bf88c9357be5ad83 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Wed, 16 Oct 2019 17:32:05 -0400 Subject: system/perl-*: modernise --- system/perl-pod2-base/APKBUILD | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'system/perl-pod2-base/APKBUILD') diff --git a/system/perl-pod2-base/APKBUILD b/system/perl-pod2-base/APKBUILD index 28d409678..5ba39c600 100644 --- a/system/perl-pod2-base/APKBUILD +++ b/system/perl-pod2-base/APKBUILD @@ -1,6 +1,10 @@ # Contributor: Kiyoshi Aman # Maintainer: Adélie Perl Team pkgname=perl-pod2-base +_pkgreal=POD2-Base +_author=FERREIRA +_au=${_author%%"${_author#??}"} +_a=${_author%%"${_author#?}"} pkgver=0.043 pkgrel=0 pkgdesc="Base module for POD translations" @@ -8,23 +12,21 @@ url="https://metacpan.org/pod/distribution/POD2-Base/lib/POD2/Base.pod" arch="noarch" license="Artistic-1.0-Perl AND GPL-2.0+" depends="perl" +makedepends="" subpackages="$pkgname-doc" -source="https://cpan.metacpan.org/authors/id/F/FE/FERREIRA/POD2-Base-$pkgver.tar.gz" -builddir="$srcdir/POD2-Base-$pkgver" +source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" build() { - cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { - cd "$builddir" make test } package() { - cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -- cgit v1.2.3-70-g09d2