aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-signal-mask/APKBUILD
blob: c14911dd01c2c2b44673b500427f1cefbbf9c1dc (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
45
46
47
48
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-signal-mask
_pkgreal=Signal-Mask
pkgver=0.008
pkgrel=0
pkgdesc="Signal masks made easy"
url="http://search.cpan.org/dist/Signal-Mask/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-ipc-signal"
cpanmakedepends=""
cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

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

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

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

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

sha512sums="d78867778f24b844d0795e0fa14245346f69995a00dab2c46e240f807c9912473a37c63451a5528a92b41659409b7d6229779190c1566363c884a15560a7abf3  Signal-Mask-0.008.tar.gz"