diff options
author | Timothy Legge <timlegge@gmail.com> | 2020-04-05 15:32:44 +0000 |
---|---|---|
committer | Timothy Legge <timlegge@gmail.com> | 2020-04-06 10:40:41 +0000 |
commit | bcaccb736bb6d36644b4b9724cf86766663bb666 (patch) | |
tree | d534a2249986be7edd8d8739ad126efa967a95a5 /community/perl-class-methodmaker/APKBUILD | |
parent | b977159feaaf33b917bfaf74622ff8a6e2d86ea7 (diff) | |
download | aports-bcaccb736bb6d36644b4b9724cf86766663bb666.tar.bz2 aports-bcaccb736bb6d36644b4b9724cf86766663bb666.tar.xz |
community/perl-class-methodmaker: modernize APKBUILD
Diffstat (limited to 'community/perl-class-methodmaker/APKBUILD')
-rw-r--r-- | community/perl-class-methodmaker/APKBUILD | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/community/perl-class-methodmaker/APKBUILD b/community/perl-class-methodmaker/APKBUILD index f0afcfe965..a584654495 100644 --- a/community/perl-class-methodmaker/APKBUILD +++ b/community/perl-class-methodmaker/APKBUILD @@ -1,34 +1,33 @@ +# Automatically generated by apkbuild-cpan, template 3 # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-class-methodmaker +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan +_pkgreal=Class-MethodMaker pkgver=2.24 -pkgrel=5 -pkgdesc="Create generic class methods" -url="https://metacpan.org/release/Class-MethodMaker" +pkgrel=6 +pkgdesc="A module for creating generic methods" +url="https://metacpan.org/release/Class-MethodMaker/" arch="all" -license="GPL" -depends="" -depends_dev="perl-dev" -makedepends="$depends_dev" -install="" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends="perl" +makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-$pkgver.tar.gz" - -builddir="$srcdir/Class-MethodMaker-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" build() { - cd "$builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { - cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { - cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |