summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 01:24:51 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 01:24:51 +0000
commitd10da22d181cf0ee52ebeb9900dfebbbf15e3d77 (patch)
tree890a51d98ae2c904c165362c2c73f8609ed05c32 /user
parent0ccda5834cfa0c9184969d6877d92da6dc214af5 (diff)
downloadpackages-d10da22d181cf0ee52ebeb9900dfebbbf15e3d77.tar.gz
packages-d10da22d181cf0ee52ebeb9900dfebbbf15e3d77.tar.bz2
packages-d10da22d181cf0ee52ebeb9900dfebbbf15e3d77.tar.xz
packages-d10da22d181cf0ee52ebeb9900dfebbbf15e3d77.zip
user/perl-test-mocktime: new package
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"