summaryrefslogtreecommitdiffstats
path: root/main/perl-test-requires/APKBUILD
blob: b255d683b23000a72b31f737fae87f4e69123789 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-test-requires
_pkgreal=Test-Requires
pkgver=0.07
pkgrel=0
pkgdesc="Checks to see if the module can be loaded"
url="http://search.cpan.org/dist/Test-Requires/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	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="20bdd194fd0cf59eb0cc9349a68dbaa6  Test-Requires-0.07.tar.gz"
sha256sums="cc0273f1b68817dc715e374c7abf245f13db28223a734d2bd72ab1d48a33cef0  Test-Requires-0.07.tar.gz"
sha512sums="65fca6f894181e8b642628aaa388ee0f45d1269729c45ced7a9c04053511351416a97c9114696b38ae1294299931e987a203a2553095668557748bb223719a8b  Test-Requires-0.07.tar.gz"