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

                               
            



                                             
                                       
              
                      
                          

                                                                                        

         




                                                                 



                 



                                                                           
                                                                                                                                                                     
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-test-time
_pkgreal=Test-Time
_author=ANATOFUZ
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.092
pkgrel=0
pkgdesc="Override Perl functions for testing"
url="https://metacpan.org/release/Test-Time"
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="1eda8619bbe2e71992b0cf057ec33a610be9db70cc0708fa429686c7158985b28b593bc2fe9ca0f6b79862ac19bb124f763e40787e2f09e0f11adfd64ac50944  Test-Time-0.092.tar.gz"