Skip to content
Snippets Groups Projects
Verified Commit d10da22d authored by Anna Wilcox's avatar Anna Wilcox :fox:
Browse files

user/perl-test-mocktime: new package

parent 0ccda583
No related branches found
No related tags found
No related merge requests found
# 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment