aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-log-dispatch/APKBUILD
blob: 7ba177815902b49f61c7c33c637a255800480fe5 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-log-dispatch
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Log-Dispatch
pkgver=2.70
pkgrel=1
pkgdesc="Dispatches messages to one or more outputs"
url="https://metacpan.org/release/Log-Dispatch/"
arch="noarch"
license="Artistic-2.0"
depends="perl perl-module-runtime perl-dist-checkconflicts perl-devel-globaldestruction perl-namespace-autoclean perl-params-validationcompiler perl-try-tiny perl-specio"
makedepends="perl-dev perl-dist-checkconflicts"
checkdepends="perl-test-needs perl-test-fatal perl-ipc-run3"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Log-Dispatch-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

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

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

sha512sums="c4c8cfb9e74b3176d5f95e3f9fbc86303321caa3e608a7ec318786ecd80d2238fd06a3b74ded65d5d3fab5c3a1297f99c92c62b1136b27d3b5396fd3fca602f6  Log-Dispatch-2.70.tar.gz"