summaryrefslogblamecommitdiff
path: root/user/perl-datetime/APKBUILD
blob: 031765f50181f1eedb825170fc24a814ecc2ff34 (plain) (tree)
1
2
3
4
5
6
7
8


                                                                   



                               
           






                                                                             
                           
                                                                          

                                           

                                                                                        

         




                                                                 



                 



                                                                           
                                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-datetime
_pkgreal=DateTime
_author=DROLSKY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.58
pkgrel=0
pkgdesc="Date and time object for Perl"
url="https://metacpan.org/release/DateTime"
arch="all"
license="Artistic-2.0"
depends="perl-datetime-locale perl-datetime-timezone perl-dist-checkconflicts
	perl-namespace-autoclean perl-params-validationcompiler perl-specio
	perl-try-tiny perl"
checkdepends="perl-test-fatal perl-test-warnings perl-test-without-module"
makedepends="perl-dev perl-cpan-meta-check"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="2d337c06bb5125c4b81f5a1bff3c83366e53c86765333d76b7e80f39f209b1e1d3a3251395fb5f5778dc35ab356823a9e1d3f7a4f84ff919cc202b641487be31  DateTime-1.58.tar.gz"