aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-simple/APKBUILD
blob: 4c8f4d4f315562bbc4539cb7a458af937ca962e5 (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
42
43
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-test-simple
_pkgreal=Test-Simple
pkgver=1.302075
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"
provides="perl-test-tester"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare || return 1

	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make && make test
}

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

md5sums="2e7d9553c1877a5ad1fd3e723e3a1599  Test-Simple-1.302075.tar.gz"
sha256sums="86f2205498f96302e00331ac586bf366547e946e8637ad208d6317a2097d40b7  Test-Simple-1.302075.tar.gz"
sha512sums="ebd6fe42458b4608f8f54bf35f062dbb767bc48659e262a794f8383de206b28c7e5acbc9418301dc0f5ca0a43602c17caa49be1a8a8ce2ad0fc836e31ca32239  Test-Simple-1.302075.tar.gz"