diff options
author | Timothy Legge <timlegge@gmail.com> | 2019-04-20 00:14:00 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-04-21 15:28:57 +0000 |
commit | 4cc4ec55388db0ae2ea7e50a1de02624f950cdc7 (patch) | |
tree | dc6d60e326be2847f5afcfeb1eaf3ee09060c69c /testing/perl-sub-exporter-formethods | |
parent | c13404f3a6c53c7990835d1b811e4fd1060a72de (diff) | |
download | aports-4cc4ec55388db0ae2ea7e50a1de02624f950cdc7.tar.bz2 aports-4cc4ec55388db0ae2ea7e50a1de02624f950cdc7.tar.xz |
testing/perl-sub-exporter-formethods: new aport
Diffstat (limited to 'testing/perl-sub-exporter-formethods')
-rw-r--r-- | testing/perl-sub-exporter-formethods/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/perl-sub-exporter-formethods/APKBUILD b/testing/perl-sub-exporter-formethods/APKBUILD new file mode 100644 index 0000000000..2eb38d58c6 --- /dev/null +++ b/testing/perl-sub-exporter-formethods/APKBUILD @@ -0,0 +1,37 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timothy Legge <timlegge@gmail.com> +# Maintainer: Timothy Legge <timlegge@gmail.com> +pkgname=perl-sub-exporter-formethods +_pkgreal=Sub-Exporter-ForMethods +pkgver=0.100052 +pkgrel=0 +pkgdesc="helper routines for using Sub::Exporter to build methods" +url="https://metacpan.org/release/Sub-Exporter-ForMethods/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-sub-exporter perl-sub-name" +cpancheckdepends="perl-namespace-autoclean" +depends="$cpandepends" +makedepends="perl-dev" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Sub-Exporter-ForMethods-$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 + make +} + +check() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +package() { + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="75dc9d150f0d0fe33f727363582f99f1ca5c4b76e789e33e640f648588c23531516a99affd9097bc38e175e099dac817d307406dd2380f422aae401f3b5405ca Sub-Exporter-ForMethods-0.100052.tar.gz" |