aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-linux-pid/APKBUILD
blob: bdb98cc1bce3241431f1ef3c846459e2a67c2984 (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
39
40
41
42
43
44
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-linux-pid
_pkgreal=Linux-Pid
pkgver=0.04
pkgrel=12
pkgdesc="Get the native PID and the PPID on Linux"
url="https://metacpan.org/release/Linux-Pid/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RG/RGARCIA/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

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

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

check() {
	cd "$builddir"
	make test
}

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

sha512sums="b28418285f6e75e87d23b6eae2b5bcd300ba68248b10a0fc8ba38e8e4c09a3053076e591357263caf43dc09958bceea02680f420bb92ed05ce243a36b1e42c09  Linux-Pid-0.04.tar.gz"