aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-test-differences/APKBUILD
blob: a80f532a1b2703ca17d05f874489f62bd1639c42 (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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-test-differences
_pkgreal=Test-Differences
pkgver=0.66
pkgrel=0
pkgdesc="Test strings and data structures and show differences if not ok"
url="http://search.cpan.org/dist/Test-Differences/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-text-diff"
cpanmakedepends="perl-module-build perl-capture-tiny perl-test-pod perl-test-pod-coverage"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DC/DCANTRELL/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="18c70d5f952cf132d3385e5e37eb94ae738859596045005b28d24a5b888abc9444b2bed98eb71e0591fab93b6eebb59dc43b4bbe0958755286f54b29ee053f5b  Test-Differences-0.66.tar.gz"