aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-try-tiny/APKBUILD
blob: 4524149c742fb7130753c142bfb4f939725c17a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Sheila Aman <sheila@vulpine.house>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-try-tiny
_pkgreal=Try-Tiny
pkgver=0.31
pkgrel=0
pkgdesc="minimal try/catch with proper preservation of \$@"
url="https://search.cpan.org/dist/Try-Tiny/"
arch="noarch"
license="MIT"
depends="perl perl-capture-tiny perl-pod-coverage"
makedepends="grep perl-sub-name"
subpackages="$pkgname-doc"
source="https://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	make
}

check() {
	make test
}

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

sha512sums="
1a3c852e56797d81da60a4f4887cb70fc575eca83d10b8cd12fe5d5d0008a967801218f3a5277a2f1347ade95b9515c1f237333e491742d06614c0beecf44768  Try-Tiny-0.31.tar.gz
"