aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-test-simple/APKBUILD
blob: 6229b879fb17affb7486abbd64a0794effeec115 (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 <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-test-simple
pkgver=1.001014
_pkgreal=Test-Simple-$pkgver
pkgrel=1
pkgdesc="Basic utilities for writing tests."
url="http://search.cpan.org/dist/Test-Simple/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages=""
source="http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/$_pkgreal.tar.gz"

_builddir="$srcdir/$_pkgreal"
prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

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

	# man pages are already provided by perl-doc
	rm -rf "$pkgdir"/usr/share/man || return 1
}

md5sums="db7f57fd595e3e1c93c972307a88fa6e  Test-Simple-1.001014.tar.gz"
sha256sums="55a414ce89eb7a5e9e84186f286b002054f10ae8ef4f8f2d61bb710e7549f16b  Test-Simple-1.001014.tar.gz"
sha512sums="0aa0b4d78c0243480df0e7f9b28d69b6bbf1b26bd49a91827c2d61595319840f7178f179555a60ef28d49d3f50679aade4f6d8138e9ae1bd0113a3d6c66d89c2  Test-Simple-1.001014.tar.gz"