summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/perl-test-mocktime/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-test-mocktime/APKBUILD b/user/perl-test-mocktime/APKBUILD
new file mode 100644
index 000000000..b5c389b7c
--- /dev/null
+++ b/user/perl-test-mocktime/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-test-mocktime
+_pkgname=Test-MockTime
+pkgver=0.17
+pkgrel=0
+pkgdesc="Simulate different times for Perl testing"
+url="https://metacpan.org/release/Test-MockTime"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/D/DD/DDICK/Test-MockTime-$pkgver.tar.gz"
+builddir="$srcdir/Test-MockTime-$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="ad73be430e3a483a61209bacf4bfa170d6eec6597d3c0efcf5de167f9c129fbf656581dcdceeba88bd98e530371db2542894ded793f9d46e4155c612e2b7cac5 Test-MockTime-0.17.tar.gz"