summaryrefslogblamecommitdiff
path: root/system/perl-test-fatal/APKBUILD
blob: d63a70c6d1792863d010288ed04a42de42a83aa7 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                           

                       


                               
            
        
                                                         
                                             

                                           

                       
                          
                                                                                        

                                    
         
                                                                 



            



                 



                                                                           
                                                                                                                                                                      
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-test-fatal
_pkgreal=Test-Fatal
_author=RJBS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.017
pkgrel=0
pkgdesc="Simple helpers for testing code with exceptions"
url="https://metacpan.org/release/Test-Fatal"
arch="noarch"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl-try-tiny"
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="e88bb9749bd1cbc4ed169e13bcd5a1ac7411873d8ae00d8b7ecf1dfc39ed9a02f0286d885876913c69b5c90033144d5fda6a5517ef64175d13e284d3c971a6e7  Test-Fatal-0.017.tar.gz"