aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-test-simple/APKBUILD
blob: ffb832bbdd09c31cc8c71c0a2d45dec4e1e3e4d6 (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
# 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
_pkgreal=Test-Simple
pkgver=0.98_p05
_ver=${pkgver/_p/_}
pkgrel=0
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="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/$_pkgreal-$_ver.tar.gz"

_builddir="$srcdir/$_pkgreal-$_ver"

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
}

md5sums="2d51e2e69435dc666405b6a8b2265992  Test-Simple-0.98_05.tar.gz"
sha256sums="bc70e8f3cab9a28a8ecbc4299f1703c7c5529c5b22222c28689dd89127f947a2  Test-Simple-0.98_05.tar.gz"
sha512sums="ca4a77a5e5841ab6fb5d5ec8ff7bca6ec244c75ae267a6d85e8340204f109eb35ccc2fab1f30d06d2a98d2dd7687b7d908fcfad12041c15cdd4d1133a7359e5f  Test-Simple-0.98_05.tar.gz"