summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/perl-timedate/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-timedate/APKBUILD b/user/perl-timedate/APKBUILD
new file mode 100644
index 000000000..9ecfd67ae
--- /dev/null
+++ b/user/perl-timedate/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-timedate
+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=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/G/GB/GBARR/TimeDate-$pkgver.tar.gz"
+builddir="$srcdir/TimeDate-$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="c6aa7d57fbe82260c7455f74f6dfda55f7c93d7a75914bafb9d09ebfb83b5f57f6bc1e332ab0764d7688d857eb022b0f5e92cf5b685d809c63cdfa93a8d2c221 TimeDate-2.30.tar.gz"