aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-datetime/APKBUILD
blob: e54c699979c7245b0e2d807c20304c74b1b4af54 (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.25
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="3343f67ebefb3f082a0067dfaee3b3c8  DateTime-1.25.tar.gz"
sha256sums="d860ce7115802a3555e5dc380fa91c4133d3452b7bdc713011746072a58d1655  DateTime-1.25.tar.gz"
sha512sums="794214956672e5b3d81d1094914f58b97a6454f1b9817ca8f4f0ed2cc63459e472149e809e155db3d8b7ebaa93560c3d8b3efc1b2d6b520c7b9f097391b51db8  DateTime-1.25.tar.gz"