From 7e173ea7ee6a850252b67fc272c35118bf6c41ea Mon Sep 17 00:00:00 2001 From: Celeste <20312-Celeste@users.gitlab.alpinelinux.org> Date: Tue, 14 May 2024 17:30:42 +0000 Subject: [PATCH] community/perl-sub-prototype: new aport https://metacpan.org/release/Sub-Prototype/ Set a subroutine's prototype Needed by community/perl-sub-override 0.11 --- community/perl-sub-prototype/APKBUILD | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 community/perl-sub-prototype/APKBUILD diff --git a/community/perl-sub-prototype/APKBUILD b/community/perl-sub-prototype/APKBUILD new file mode 100644 index 00000000000..839b582774f --- /dev/null +++ b/community/perl-sub-prototype/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 4 +# Contributor: Celeste +# Maintainer: Celeste +pkgname=perl-sub-prototype +pkgver=0.03 +pkgrel=0 +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan +_pkgreal=Sub-Prototype +pkgdesc="Set a subroutine's prototype" +url="https://metacpan.org/release/Sub-Prototype/" +arch="all" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends="perl perl-sub-exporter" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Sub-Prototype-$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=" +fa2d4e7f5d5db310899eb0d6d0c9d451fbf37af5a17b35709a772be913f5dc1adaa744bb1c87e6e7b23723d279c1ed8c4b3da8629e843ce56fcadd94e22d7b2b Sub-Prototype-0.03.tar.gz +"