aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-deep/APKBUILD
blob: 703a8f8f796610ebeb8ae7607517bc2c4e18d38f (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-test-deep
pkgver=1.123
pkgrel=0
pkgdesc="Test::Deep perl module"
url="http://search.cpan.org/dist/Test-Deep/"
arch="noarch"
license="GPLv2 or Artistic"
depends="perl perl-test-tester perl-test-nowarnings"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Deep-$pkgver.tar.gz"

_builddir="$srcdir"/Test-Deep-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make && make test || return 1
}

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

md5sums="6533cbb8bc333454cce4cecb503d550a  Test-Deep-1.123.tar.gz"
sha256sums="15784c85b972f7497888db1b26bfa2b028d9c0636ade6d8a4a97fbb832a53db0  Test-Deep-1.123.tar.gz"
sha512sums="8e63d00cecca51d962e78e0ff520bd229747df2c8f33e8545758f695dfc57e07bde4a7418df27778595e0a7cbab2a8054e8d1e2c44a70cb6dd39583275b98228  Test-Deep-1.123.tar.gz"