aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-class-returnvalue/APKBUILD
blob: 19adaf6aa15c686d6b8e2945ef7f7c34bc670d51 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-class-returnvalue
pkgver=0.55
pkgrel=2
pkgdesc="Class::ReturnValue perl module"
url="https://metacpan.org/release/Class-ReturnValue/"
arch="noarch"
license="GPL-2.0 or Artistic"
depends="perl perl-devel-stacktrace"
makedepends="perl-dev perl-module-install"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JE/JESSE/Class-ReturnValue-$pkgver.tar.gz"

builddir="$srcdir/Class-ReturnValue-$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="27aecf99a7db6c943c5300048a4e51aa7646fc83d2a6494f24a68fc76755a9e565099fa830e7f745b76c9ab1b2a8c5ac2a90cf3b22f250245413923bf03b315c  Class-ReturnValue-0.55.tar.gz"