summaryrefslogblamecommitdiff
path: root/user/perl-test-mocktime/APKBUILD
blob: b75d9c0d32b1aed76d0a61a0c8f938adffbcc6db (plain) (tree)
1
2
3
4
5
6
7


                                                                   



                               





                                                   

              
                          

                                                                                        

         




                                                                 



                 




                                                                                                                                                                        
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-mocktime
_pkgreal=Test-MockTime
_author=DDICK
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
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="perl"
makedepends=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="ad73be430e3a483a61209bacf4bfa170d6eec6597d3c0efcf5de167f9c129fbf656581dcdceeba88bd98e530371db2542894ded793f9d46e4155c612e2b7cac5  Test-MockTime-0.17.tar.gz"