aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-log-dispatch/APKBUILD
blob: 4c17f223c5181aa4fa5cc599f45d6139989f5eb8 (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-log-dispatch
_pkgreal=Log-Dispatch
pkgver=2.41
pkgrel=0
pkgdesc="Dispatches messages to one or more outputs"
url="http://search.cpan.org/dist/Log-Dispatch/"
arch="noarch"
license="Artistic-2"
cpandepends="perl-class-load perl-params-validate perl-dist-checkconflicts"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev perl-module-implementation $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_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 && make test
}

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

md5sums="85a384db37c7fe4e5db90c0bbc376da2  Log-Dispatch-2.41.tar.gz"
sha256sums="3f81fa068a2d68b0d13243a874da765ffb728a9d26ed44ef088ca627faa4556f  Log-Dispatch-2.41.tar.gz"
sha512sums="5ce6c1d9549583d6e8927a3e3bc1f4b2d37e7705edd10ea05039ea5fc12ea3b01b49cb9d863bccadb373e6522b973b5189125e2a91a824fdb5dbec2b5d9c6d7c  Log-Dispatch-2.41.tar.gz"