aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-mocktime/APKBUILD
blob: 01bfed66c6560d6b9cc77a23f315a511f6c789e4 (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: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-test-mocktime
_pkgreal=Test-MockTime
pkgver=0.12
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/Test-MockTime/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DD/DDICK/$_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="de726192bcdd0cef68a07ffdf11d7300  Test-MockTime-0.12.tar.gz"
sha256sums="496ecc96a9d22abfa367404b22088364f10965c2879b65605f0e3286354e9780  Test-MockTime-0.12.tar.gz"
sha512sums="f3f66fb7c0cd5a83218d92cd706c4f6eeaf7d93b89e3ba7dface799facf47070c727bf7da5805c9aba52fefb30b1290cc10957694386600ad7575f3cc33c86d3  Test-MockTime-0.12.tar.gz"