aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-output/APKBUILD
blob: 12b68728fdb234527141db1b6394ad835ebf54fb (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
36
37
38
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: 
# Maintainer: 
pkgname=perl-test-output
_pkgreal=Test-Output
pkgver=1.03
pkgrel=0
pkgdesc="Utilities to test STDOUT and STDERR messages."
url="http://search.cpan.org/dist/Test-Output/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-capture-tiny perl-sub-exporter perl-test-simple"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/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 && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="903485edb382f5a18a5029978d1febf6  Test-Output-1.03.tar.gz"
sha256sums="3110af65c6fc59b9fa46b08a47508c5e85f6edc6355f0879e28b11f9ad0c2989  Test-Output-1.03.tar.gz"
sha512sums="b7f793564c906f40444f249272dde55db1357923da72b6638634aece779d9cc5e8f4d7de0326fabb33e7c11eccf089069532f8f61529526467b579e1bacb4ee1  Test-Output-1.03.tar.gz"