summaryrefslogblamecommitdiff
path: root/user/perl-test-time/APKBUILD
blob: 0e30b1874b8a41161240752279f05faafd39907f (plain) (tree)
1
2
3
4
5
6
7
8


                                                                   



                               
           




                                             
              
                      
                          

                                                                                        

         




                                                                 



                 



                                                                           
                                                                                                                                                                    
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-time
_pkgreal=Test-Time
_author=SATOH
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.08
pkgrel=0
pkgdesc="Override Perl functions for testing"
url="https://metacpan.org/release/Test-Time"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
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="77f77f0f3aab033e1dd02c92ebae734a496e8c2e070f908ee73a70197971839009118f10c2e0ff2562172f4da62262eb2d67a05796c9dc77a46efaa9113f99df  Test-Time-0.08.tar.gz"