aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-datetime/APKBUILD
blob: bc5f9142d68655feb9686ada6e0f5f1e4fc54f0b (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
44
45
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-datetime
_pkgreal=DateTime
pkgver=1.20
pkgrel=0
pkgdesc="Perl module for DateTime"
url="http://search.cpan.org/dist/DateTime/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends perl perl-datetime-locale perl-datetime-timezone"
makedepends="perl-dev $cpanmakedepends perl-module-build perl-test-fatal
	perl-test-warnings"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	if [ -e Build.PL ]; then
		perl Build.PL installdirs=vendor || return 1
	else
		PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	fi
}

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="9cc3afee0f5cf6fb786aa7e2e32a89bd  DateTime-1.20.tar.gz"
sha256sums="ac909ca4e26f2713940302ad1fd8068de0a6970416a5a88a812cceb155becb0d  DateTime-1.20.tar.gz"
sha512sums="b0374407683da3b68d0a127a2899deb8222f3bbd3e1f68481a000ca8c7fbde69bf4e43253b4cdd68f97b0a0ee7d8ed9d7a08fda8b5bf713b0f02ba722cd3aff9  DateTime-1.20.tar.gz"