blob: 37c39069bc9c9796ad9a17d0c8635c452c027269 (
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
|
# 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.54
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="b974bf2191d6d9ac5e674edf05da8bca1b506c953dc6280d16358f09c55601bf47c0158de5ee46f79ee8e56e8e358e0168a70480cf7a24270475914e5278b843 DateTime-1.54.tar.gz"
|