aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-mocktime/APKBUILD
blob: 43620f62f8f8949ec815c015fa136be8e35d9d1b (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.15
pkgrel=0
pkgdesc="Replaces actual time with simulated time"
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="af7374d01a2d6a0a9a341543ab8619e1  Test-MockTime-0.15.tar.gz"
sha256sums="88210201de97aab66cb100edc2be3368c0062a9de635f4f8ec258a2267edcc48  Test-MockTime-0.15.tar.gz"
sha512sums="8a91eb39e7ff68d6ac1cbd149ee8acdbdc2bf6c99bcd71decc38fb2c71f5ed6bdb32336c4e07a922e7d8dd1b2d084306a232e008a0a8587720fff60a3ba325d0  Test-MockTime-0.15.tar.gz"