aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-datetime/APKBUILD
blob: 70818138f5bf407fda0e932bad67ed6faa5a47c0 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-datetime
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=DateTime
pkgver=1.65
pkgrel=0
pkgdesc="A date and time object for Perl"
url="https://metacpan.org/release/DateTime/"
arch="all"
license="Artistic-2.0"
depends="perl perl-specio perl-dist-checkconflicts perl-datetime-locale
	perl-namespace-autoclean perl-try-tiny perl-datetime-timezone
	perl-params-validationcompiler"
makedepends="perl-dev"
checkdepends="perl-cpan-meta-check perl-test-warnings perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
53b8bb5085420104d9cd2b6df076d353684ec6f347caf17f858c9c09e052aa19421bf980d130dbbe0094b791ff071ee99d8222509717008e5a3cd354639f7720  DateTime-1.65.tar.gz
"