mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
39 lines
1.3 KiB
Text
39 lines
1.3 KiB
Text
# Automatically generated by apkbuild-cpan, template 3
|
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
pkgname=perl-datetime-format-natural
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=DateTime-Format-Natural
|
|
pkgver=1.16
|
|
pkgrel=0
|
|
pkgdesc="Parse informal natural language date/time strings"
|
|
url="https://metacpan.org/release/DateTime-Format-Natural/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="
|
|
perl perl-datetime-timezone perl-clone perl-params-validate perl-list-moreutils perl-datetime
|
|
perl-boolean perl-datetime-hires
|
|
"
|
|
makedepends="perl-dev perl-test-mocktime-hires perl-module-util perl-module-build"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/S/SC/SCHUBIGER/DateTime-Format-Natural-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
perl Build.PL --installdirs=vendor
|
|
./Build
|
|
}
|
|
|
|
check() {
|
|
./Build test
|
|
}
|
|
|
|
package() {
|
|
./Build install --destdir="$pkgdir"
|
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
}
|
|
|
|
sha512sums="
|
|
498276a5c783176a531d6b13924a351965cf38ea8e09106ec010f63a93c3a8a1699e1a633d16b93d34499b88459cea19d6e32700e81eed5852f0c8f6abca46c8 DateTime-Format-Natural-1.16.tar.gz
|
|
"
|