summaryrefslogblamecommitdiff
path: root/user/perl-timedate/APKBUILD
blob: fec167717e79b48e886e6ae224dd79cdba7aebb4 (plain) (tree)
1
2
3
4
5
6
7


                                                                   



                               





                                                  
              
                      
                          

                                                                                        

         




                                                                 



                 




                                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-timedate
_pkgreal=TimeDate
_author=GBARR
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.30
pkgrel=0
pkgdesc="Date and time handling routines for Perl"
url="https://metacpan.org/release/TimeDate"
arch="noarch"
license="Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
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="c6aa7d57fbe82260c7455f74f6dfda55f7c93d7a75914bafb9d09ebfb83b5f57f6bc1e332ab0764d7688d857eb022b0f5e92cf5b685d809c63cdfa93a8d2c221  TimeDate-2.30.tar.gz"