aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-try-tiny/APKBUILD
blob: 8b152d8e9b4049035b9db5ee085407489e705059 (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
# 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.30
pkgrel=3
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="f523736ab0504ca0f7150be312e62988c4b9473a9e8469b0746dc8364945e2922c64c92e95e6c2b5792c5d6399dabea3d00aa45c065155b95519d5658a07216c  Try-Tiny-0.30.tar.gz"