From 58fbc2c71a94e976bbfd7c2142cbefb42176f3de Mon Sep 17 00:00:00 2001 From: Celeste <20312-Celeste@users.gitlab.alpinelinux.org> Date: Fri, 12 Jan 2024 05:57:12 +0000 Subject: [PATCH] testing/perl-indirect: new aport https://metacpan.org/release/indirect/ Lexically warn about using the indirect method call syntax --- testing/perl-indirect/APKBUILD | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 testing/perl-indirect/APKBUILD diff --git a/testing/perl-indirect/APKBUILD b/testing/perl-indirect/APKBUILD new file mode 100644 index 00000000000..2c2eaabb1d0 --- /dev/null +++ b/testing/perl-indirect/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 4 +# Contributor: Celeste +# Maintainer: Celeste +pkgname=perl-indirect +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan +_pkgreal=indirect +pkgver=0.39 +pkgrel=0 +pkgdesc="Lexically warn about using the indirect method call syntax" +url="https://metacpan.org/release/indirect/" +arch="all" +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/V/VP/VPIT/indirect-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ + INSTALLDIRS=vendor \ + NO_PACKLIST=1 \ + NO_PERLLOCAL=1 + make +} + +check() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums=" +d3275a2cab2eeceef61756e08947d3072c0ce5cea2e8b70870c5fcbd9c63e56cf70568395002b7d02060cad3482f7f56723b1ad85fcf0a4c4ee2568b5035816c indirect-0.39.tar.gz +"