diff options
| author | Timothy Legge <timlegge@gmail.com> | 2020-02-28 03:29:46 +0000 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2020-02-28 06:40:43 -0300 |
| commit | 8e6b23af9ea82e58d24dfd6c88db8469b2f58655 (patch) | |
| tree | 883eb18b105714797560bc2b229c7cb0857539be /testing | |
| parent | b5e990afba810b36470a95492c93833f5b06533b (diff) | |
| download | aports-8e6b23af9ea82e58d24dfd6c88db8469b2f58655.tar.bz2 aports-8e6b23af9ea82e58d24dfd6c88db8469b2f58655.tar.xz | |
testing/perl-test-time: new aport
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/perl-test-time/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/perl-test-time/APKBUILD b/testing/perl-test-time/APKBUILD new file mode 100644 index 0000000000..d375554581 --- /dev/null +++ b/testing/perl-test-time/APKBUILD @@ -0,0 +1,33 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timothy Legge <timlegge@gmail.com> +# Maintainer: Timothy Legge <timlegge@gmail.com> +pkgname=perl-test-time +_pkgreal=Test-Time +pkgver=0.08 +pkgrel=0 +pkgdesc="Overrides the time() and sleep() core functions for testing" +url="https://metacpan.org/release/Test-Time/" +arch="noarch" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/S/SA/SATOH/Test-Time-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +package() { + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="77f77f0f3aab033e1dd02c92ebae734a496e8c2e070f908ee73a70197971839009118f10c2e0ff2562172f4da62262eb2d67a05796c9dc77a46efaa9113f99df Test-Time-0.08.tar.gz" |
