mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 04:26:43 +02:00
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=perl-datetime
|
|
pkgver=1.66
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=DateTime
|
|
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 perl-test-without-module"
|
|
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 \
|
|
NO_PACKLIST=1 \
|
|
NO_PERLLOCAL=1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="
|
|
18e371dad068b1e13415bf00274e4a3f421e6afc53eca9dbe07f63b27e8b71a8f0466fa3fa9f91c3d4b66a6f6c8cb0541f15f9534148fe57dbb813283c58ebdb DateTime-1.66.tar.gz
|
|
"
|