summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-02 04:56:37 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-02 04:56:37 +0000
commitff18d73e2f4b7d4a0a0fd81351f6f77d5baaa708 (patch)
tree2ac8a0ea01039e1d4c0898b59586f446d5c799c8
parentaffcb5fb4394c42aeb823b87649bba8c7637f1d3 (diff)
downloadpackages-ff18d73e2f4b7d4a0a0fd81351f6f77d5baaa708.tar.gz
packages-ff18d73e2f4b7d4a0a0fd81351f6f77d5baaa708.tar.bz2
packages-ff18d73e2f4b7d4a0a0fd81351f6f77d5baaa708.tar.xz
packages-ff18d73e2f4b7d4a0a0fd81351f6f77d5baaa708.zip
user/perl-time-duration: new package
-rw-r--r--user/perl-time-duration/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-time-duration/APKBUILD b/user/perl-time-duration/APKBUILD
new file mode 100644
index 000000000..daf931ee5
--- /dev/null
+++ b/user/perl-time-duration/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-time-duration
+pkgver=1.20
+pkgrel=0
+pkgdesc="Rounded or exact English expression of time durations in Perl"
+url="https://metacpan.org/release/Time-Duration"
+arch="noarch"
+license="Artistic-1.0-Perl"
+depends=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Time-Duration-$pkgver.tar.gz"
+builddir="$srcdir/Time-Duration-$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="74bdcbc2b65061ad30540a95467de24f552235cea2367a7770309d9ffefeb35717f438e4f7ebf6a1d63f338cd714ffe16b3f45808514995db9753d643892d5f9 Time-Duration-1.20.tar.gz"