diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-12-12 00:09:30 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-12-12 00:16:53 +0100 |
commit | aa51c0a1d1521338841c3d35017cfa7a4a280280 (patch) | |
tree | 416eb933e3631b1e201d0f295db77f9c2036cc12 /community/perl-datetime-format-natural | |
parent | 094f4d1fc059104f212354edc72741534a9f3d18 (diff) | |
download | aports-aa51c0a1d1521338841c3d35017cfa7a4a280280.tar.bz2 aports-aa51c0a1d1521338841c3d35017cfa7a4a280280.tar.xz |
community/perl-datetime-format-natural: move from main
Diffstat (limited to 'community/perl-datetime-format-natural')
-rw-r--r-- | community/perl-datetime-format-natural/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/perl-datetime-format-natural/APKBUILD b/community/perl-datetime-format-natural/APKBUILD new file mode 100644 index 0000000000..4019cea412 --- /dev/null +++ b/community/perl-datetime-format-natural/APKBUILD @@ -0,0 +1,42 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=perl-datetime-format-natural +_pkgreal=DateTime-Format-Natural +pkgver=1.08 +pkgrel=0 +pkgdesc="Create machine readable date/time with natural parsing logic" +url="https://metacpan.org/release/DateTime-Format-Natural" +arch="noarch" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +cpandepends="perl-datetime-timezone perl-clone perl-params-validate + perl-list-moreutils perl-datetime perl-boolean" +cpanmakedepends="perl-module-util perl-test-mocktime perl-date-calc + perl-mro-compat perl-role-tiny" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/S/SC/SCHUBIGER/DateTime-Format-Natural-$pkgver.tar.gz" + +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="92ce61df98bb4d15b41597a99d0c19972c2f1f24352c5af365d41afc13efde79f9e5fb23551208450e8fc0ee499f1a7cd6aa8ccd44f16991f3fccf48e8a6c635 DateTime-Format-Natural-1.08.tar.gz" |