summaryrefslogtreecommitdiff
path: root/user/perl-parallel-forkmanager/APKBUILD
blob: 5284142943fcaf2761a0f3c408e64c0468953ec5 (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
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-parallel-forkmanager
_pkgreal=Parallel-ForkManager
_author=YANICK
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.02
pkgrel=0
pkgdesc="Perl library for managing fork()-based parallelization"
url="https://metacpan.org/pod/Parallel::ForkManager"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-moo"
checkdepends="perl-test-warn"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="2b390ec8f252e7bf2b6be8d602b231b1fd347bc5256bf7f16a6d56f67256938f3d96b7a28c92c662d8b91441b7fa4cb5922c655e64a7a4a9332eb58f19b6bcfb  Parallel-ForkManager-2.02.tar.gz"