summaryrefslogtreecommitdiff
path: root/user/perl-datetime/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-datetime/APKBUILD')
-rw-r--r--user/perl-datetime/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/user/perl-datetime/APKBUILD b/user/perl-datetime/APKBUILD
new file mode 100644
index 000000000..9bdd7a945
--- /dev/null
+++ b/user/perl-datetime/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-datetime
+_pkgname=DateTime
+pkgver=1.50
+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"
+checkdepends="perl-test-fatal perl-test-warnings"
+makedepends="perl-dev perl-cpan-meta-check"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-$pkgver.tar.gz"
+builddir="$srcdir/DateTime-$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="fa8f57aac2b736a5b8b70005b74a81ea4bc80143714a79f16896c4214776c591f3db6689841a6b5217070e02ccea6ccf30b565c3bb0acdce9d1ea44eb61fe85a DateTime-1.50.tar.gz"