aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-requires/APKBUILD
blob: 363753a6da75536f17704bfe38d1476484185f68 (plain) (blame)
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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-test-requires
_pkgreal=Test-Requires
pkgver=0.08
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_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="339ec20fbbeaa904a968bdee629688a6  Test-Requires-0.08.tar.gz"
sha256sums="e7b1b4b30b90d530aea68205c0e65cf7a784d6a218df5a2b41830cdb404d8221  Test-Requires-0.08.tar.gz"
sha512sums="ddb0072ed4f35019b9d1122742f272d9f00589fafeadf3ad0758a962ba5e819fc3e15cb01e1a0ed1c03aee42c18b7ef1377a45683519bf6d63b1b31e3384b9d0  Test-Requires-0.08.tar.gz"