aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-test-most/APKBUILD
blob: 9e44695660baa0d99b97f58cfab123ed3ed56e0c (plain)
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-most
_pkgreal=Test-Most
pkgver=0.34
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/Test-Most/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-exception-class perl-test-differences perl-test-warn perl-test-exception perl-test-deep"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/O/OV/OVID/$_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="6fa1f097bedbc18f46b08ac9eb79bba9  Test-Most-0.34.tar.gz"
sha256sums="c2820c8de65f5fa59f218ac2be9be98b22cc1bb1a1f371e04375aa3b6054e244  Test-Most-0.34.tar.gz"
sha512sums="00706bb25e6b9f806b536f75f66356413cdbcb19efd1c8b163fbd3357f61abe9e06e57c311eff216d36962ce74beb996db6cd4f0d2e5ed58fa5c0a0af32a33ef  Test-Most-0.34.tar.gz"