summaryrefslogblamecommitdiff
path: root/user/perl-datetime-timezone/APKBUILD
blob: 9a1b35e06d2b304da7151981f6ece4c36d085936 (plain) (tree)
1
2
3
4
5



                                                                   
           





























                                                                                           
                                                                                                                                                                            
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-datetime-timezone
_pkgname=DateTime-TimeZone
pkgver=2.23
pkgrel=0
pkgdesc="Time zone object class and factory for Perl"
url="https://metacpan.org/release/DateTime-TimeZone"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl-class-singleton perl-module-runtime perl-namespace-autoclean
	perl-params-validationcompiler perl-specio perl-try-tiny"
checkdepends="perl-test-fatal perl-test-requires"
makedepends=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-$pkgver.tar.gz"
builddir="$srcdir/DateTime-TimeZone-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="e2edfde606bea8595df6f6cec9239fe6fe637d2c3ca2eb319da835c71061dab52ae8da0eb67da3d572b371f2e0820a35d681d9876e0c4dc8003e7504bdd41d06  DateTime-TimeZone-2.23.tar.gz"