summaryrefslogblamecommitdiff
path: root/user/perl-test-trap/APKBUILD
blob: fa4764ce15bb0488764c8796082ffeebfae8f7f1 (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-trap
_pkgreal=Test-Trap
_author=EBHANSSEN
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.3.4
pkgrel=0
pkgdesc="Trap Perl exit codes, exceptions, and output"
url="https://metacpan.org/release/Test-Trap"
arch="noarch"
license="Artistic-1.0-Perl"
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="cac4412a55511c820a1813a277afa802769a64219bf306190d83fea775c53bcd1d7faa275cb7f1b435e5ae274b6c1f78dd862525a6426040e51fdaf537e720ff  Test-Trap-v0.3.4.tar.gz"