summaryrefslogblamecommitdiff
path: root/user/perl-test-trap/APKBUILD
blob: 0b8ed06bae9cc2fd0dc1ac9c49b90120764a0f40 (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-trap
_pkgreal=Test-Trap
_author=EBHANSSEN
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.3.5
pkgrel=0
pkgdesc="Trap Perl exit codes, exceptions, and output"
url="https://metacpan.org/release/Test-Trap"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-data-dump"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-v$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="02836ed9c91448cb5aa84246c17d72d119844e072289656529d87e944ad1c26fa7e18e7b45290cdffdabaff7abdad4547233156331194ce375da0b902811313e  Test-Trap-v0.3.5.tar.gz"