summaryrefslogtreecommitdiff
path: root/user/perl-datetime
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-17 22:59:09 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-17 22:59:09 +0000
commit8f33f74783143987e749bcaf13331d78287ea082 (patch)
tree30624dcabc9f1ace85972163f1df253cee526aca /user/perl-datetime
parent71c6bd01c6031a072b2426e0a53b26dd80d7a5d6 (diff)
downloadpackages-8f33f74783143987e749bcaf13331d78287ea082.tar.gz
packages-8f33f74783143987e749bcaf13331d78287ea082.tar.bz2
packages-8f33f74783143987e749bcaf13331d78287ea082.tar.xz
packages-8f33f74783143987e749bcaf13331d78287ea082.zip
user/perl-datetime: new package
Diffstat (limited to 'user/perl-datetime')
-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"