diff options
author | Max Rees <maxcrees@me.com> | 2018-09-16 14:05:35 -0400 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2018-09-16 14:05:35 -0400 |
commit | da9f546f40642ec607f479958ec022e4e5a363ef (patch) | |
tree | f88390087a80e28723a9533ec2c3781aecf5bd55 /user/perl-test-output/APKBUILD | |
parent | da05459490326d3cc16b97943eb889a75aeb8b6b (diff) | |
download | packages-da9f546f40642ec607f479958ec022e4e5a363ef.tar.gz packages-da9f546f40642ec607f479958ec022e4e5a363ef.tar.bz2 packages-da9f546f40642ec607f479958ec022e4e5a363ef.tar.xz packages-da9f546f40642ec607f479958ec022e4e5a363ef.zip |
user/perl-test-output: new package
Diffstat (limited to 'user/perl-test-output/APKBUILD')
-rw-r--r-- | user/perl-test-output/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/user/perl-test-output/APKBUILD b/user/perl-test-output/APKBUILD new file mode 100644 index 000000000..8454737f3 --- /dev/null +++ b/user/perl-test-output/APKBUILD @@ -0,0 +1,44 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-test-output +_pkgreal=Test-Output +pkgver=1.031 +pkgrel=0 +pkgdesc="Utilities to test STDOUT and STDERR messages" +url="https://metacpan.org/release/Test-Output" +arch="noarch" +license="Artistic-2.0" +cpandepends="perl-capture-tiny perl-sub-exporter perl-test-simple" +cpanmakedepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="perl-test-pod" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/B/BD/BDFOY/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="b443d5a4ab7be1c308b74ebc9a1a50022b404886e8a1dbd2700d974ead506a6976ec6d5c141528cf1c2833174c3afd9023362cb0b4e000f0e878d2e3e9f90e90 Test-Output-1.031.tar.gz" |