aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-test-differences/APKBUILD
blob: 44f7b599caacdd668fc0e69667e124e1a8ecb873 (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
# 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.64
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 Build.PL installdirs=vendor || return 1
}

build() {
	cd "$_builddir"
		export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

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

md5sums="ecfda620fe133e36a6e392d94ab8424d  Test-Differences-0.64.tar.gz"
sha256sums="9f459dd9c2302a0a73e2f5528a0ce7d09d6766f073187ae2c69e603adf2eb276  Test-Differences-0.64.tar.gz"
sha512sums="118a4b8e3f61f64d6676c82913bb605a843a408f3fc5d960b40cc86f10423380a203b2a5604e15ba8d4e0cff96af88b551fba1c7aa2ada3c0ef408a27ee5f069  Test-Differences-0.64.tar.gz"