summaryrefslogtreecommitdiff
path: root/community/perl-proc-waitstat/APKBUILD
blob: d30e72421f2d0af2cae6ed8738da366cdadc0004 (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
35
36
37
38
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-proc-waitstat
_pkgreal=Proc-WaitStat
pkgver=1.00
pkgrel=4
pkgdesc="Perl module interpret and act on wait() status values"
url="https://metacpan.org/release/Proc-WaitStat/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-ipc-signal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RO/ROSCH/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
	mv "$pkgdir"/usr/share/perl5/vendor_perl/* "$pkgdir"/usr/lib/perl5/vendor_perl
	rm -fr "$pkgdir"/usr/share/perl5
}

sha512sums="7abc1c3771ec560e6138cc7709ca4527a34c897067e13afd57d096d664d6d11a1d80898a955404d8b583972eae8c80689fd8421adaee9bed2601e47afe9ef235  Proc-WaitStat-1.00.tar.gz"