aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-apache-logformat-compiler/APKBUILD
blob: ee597fb0146eafab0257af43a65a1ed2243e3618 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-apache-logformat-compiler
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Apache-LogFormat-Compiler
pkgver=0.36
pkgrel=2
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"
depends="perl perl-posix-strftime-compiler"
makedepends="perl-dev perl-module-build-tiny perl-module-build"
checkdepends="perl-uri perl-http-message perl-test-mocktime perl-test-requires perl-try-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KA/KAZEBURO/Apache-LogFormat-Compiler-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	./Build test
}

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

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