APKBUILD 990 Bytes
Newer Older
1
# Automatically generated by apkbuild-cpan, template 1
2
3
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
4
pkgname=perl-test-fatal
5
_pkgreal=Test-Fatal
6
pkgver=0.016
7
pkgrel=3
8
pkgdesc="incredibly simple helpers for testing code with exceptions"
9
url="https://metacpan.org/release/Test-Fatal/"
10
arch="noarch"
11
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
12
depends="perl perl-try-tiny"
13
subpackages="$pkgname-doc"
14
source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
15
builddir="$srcdir/$_pkgreal-$pkgver"
16
17

prepare() {
18
	default_prepare
19
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
20
21
22
}

build() {
23
24
25
26
27
	make
}

check() {
	make test
28
29
30
}

package() {
31
	make DESTDIR="$pkgdir" install
32
33
34
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

35
sha512sums="395d56cfc62fa5888458ec124710b5333f4c7396653e2755a69b08c738ca3d7503e8e413a10c8a55042fba15e90fa5331bb0bf9c59d3677c2ae5e710435120b5  Test-Fatal-0.016.tar.gz"