summaryrefslogblamecommitdiff
path: root/user/perl-test-trap/APKBUILD
blob: 6f777f9696b3ba882eee93f18aeebc810e98e9a6 (plain) (tree)
1
2
3
4
                                                  
                                                                   
                      
            



























                                                                                      
                                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-trap
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-data-dump"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/EB/EBHANSSEN/Test-Trap-v$pkgver.tar.gz"
builddir="$srcdir/Test-Trap-v$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="cac4412a55511c820a1813a277afa802769a64219bf306190d83fea775c53bcd1d7faa275cb7f1b435e5ae274b6c1f78dd862525a6426040e51fdaf537e720ff  Test-Trap-v0.3.4.tar.gz"