aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-class-returnvalue/APKBUILD
blob: f60c6fe3ff5a20a0d9ae2d95a8e1c5b3d2cdb984 (plain)
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=1
pkgdesc="Class::ReturnValue perl module"
url="http://search.cpan.org/dist/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="http://search.cpan.org/CPAN/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"