aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-output/APKBUILD
blob: 9aa74495851708a0081047bfeeda229df6f59f9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-test-output
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Test-Output
pkgver=1.032
pkgrel=0
pkgdesc="Utilities to test STDOUT and STDERR messages."
url="https://metacpan.org/release/Test-Output/"
arch="noarch"
license="Artistic-2.0"
depends="perl perl-capture-tiny perl-sub-exporter"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BD/BDFOY/Test-Output-$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="35093c5f4377e4d0f931d89cdebc2aa82203c00bba3ae695c1b7f32464827c9dfe394df3e7d536ee43b5bc76c5fc0a3b0b6623d918e79b3686d8f3404d708180  Test-Output-1.032.tar.gz"