aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-apache-logformat-compiler/APKBUILD
blob: 5081911ecf74f9e761d33276b76a57967155d0a9 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-apache-logformat-compiler
_pkgreal=Apache-LogFormat-Compiler
pkgver=0.36
pkgrel=1
pkgdesc="Compile a log format string to perl-code"
url="https://metacpan.org/release/Apache-LogFormat-Compiler"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-posix-strftime-compiler"
cpanmakedepends="perl-test-requires perl-http-message perl-try-tiny perl-uri perl-test-mocktime"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KA/KAZEBURO/Apache-LogFormat-Compiler-$pkgver.tar.gz"

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

prepare() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs vendor --destdir "$pkgdir"
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	./Build
}

check() {
	./Build test
}

package() {
	./Build install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="a6f7f0f9f98401a70e4bb6bd4862e9e520e8b968c5e0f25853da57b12bf6d67357ddc8d2fe985668520758e5745b5d7783f6c656c35efd823f4325f267fdbfee  Apache-LogFormat-Compiler-0.36.tar.gz"