aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-datetime/APKBUILD
blob: a6fbc268ca72e27e84599768b428a43a965fcc72 (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 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.59
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="
72f96b0466e8ffa9d0d5fd480892d304993a048349bd837ad1f76fc144c816725de0844df9ea34a5c54d23476aec3838af8ac68cb8574247581f6cf8d08e4e88  DateTime-1.59.tar.gz
"