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



                               




                                                   
                                       
              
                      
                          

                                                                                        

         




                                                                 



                 




                                                                                                                                                                        
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
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-1.0+"
depends="perl"
makedepends="perl-dev"
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"