diff options
Diffstat (limited to 'community/perl-date-manip/APKBUILD')
-rw-r--r-- | community/perl-date-manip/APKBUILD | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/community/perl-date-manip/APKBUILD b/community/perl-date-manip/APKBUILD index 641db444eea..debddb2d495 100644 --- a/community/perl-date-manip/APKBUILD +++ b/community/perl-date-manip/APKBUILD @@ -1,38 +1,45 @@ -# Automatically generated by apkbuild-cpan, template 1 +# Automatically generated by apkbuild-cpan, template 4 # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-date-manip -_pkgreal=Date-Manip -pkgver=6.78 +pkgver=6.95 pkgrel=0 +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan +_pkgreal=Date-Manip pkgdesc="Date manipulation routines" -url="https://metacpan.org/release/Date-Manip" +url="https://metacpan.org/release/Date-Manip/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" -cpandepends="perl-yaml-syck" -cpanmakedepends="perl-test-inter" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends perl-module-build" -checkdepends="perl-test-pod perl-test-pod-coverage perl-file-find-rule" +depends="perl" +checkdepends="perl-test-inter" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/S/SB/SBECK/Date-Manip-$pkgver.tar.gz" - builddir="$srcdir/$_pkgreal-$pkgver" -prepare() { - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor -} - 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" pure_install - find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete + make DESTDIR="$pkgdir" install +} + +doc() { + local file; find "$pkgdir" -name "*.pod" | while read -r file; do + amove "${file#"$pkgdir"}" + done + default_doc } -sha512sums="10c694e535adb4f64d13643042ba43d8e0690260297831fb707583ac750273ff294cacf830e9f84d9dab616822fa2064cad89b9d30f4a4018860ed018391a6ea Date-Manip-6.78.tar.gz" +sha512sums=" +08cefda5b9795484e7fbd7ebecc4094be6ad1fbdc53a6d295b52118a1114338ee36ba0bffccc9ddba40583884a50b5dd46fd2a701259783c812a70ec8dd2ea81 Date-Manip-6.95.tar.gz +" |