summaryrefslogtreecommitdiff
path: root/user/perl-timedate/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-02 04:50:47 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-02 04:50:47 +0000
commit3ca93d52af31eab93a4b082f669810802e38ddc1 (patch)
tree244027af2612a84df86ee4ff7b8a0a7a9f593b1b /user/perl-timedate/APKBUILD
parentceb9dbc54e29033943b1db1bb5e7e888cc262795 (diff)
downloadpackages-3ca93d52af31eab93a4b082f669810802e38ddc1.tar.gz
packages-3ca93d52af31eab93a4b082f669810802e38ddc1.tar.bz2
packages-3ca93d52af31eab93a4b082f669810802e38ddc1.tar.xz
packages-3ca93d52af31eab93a4b082f669810802e38ddc1.zip
user/perl-timedate: new package
Diffstat (limited to 'user/perl-timedate/APKBUILD')
-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"