aports/main/perl-apache-logformat-compiler/APKBUILD
Natanael Copa 8bac74716d main: remove my contributor comment
git log is enough for me
2025-01-03 18:05:21 +01:00

36 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# 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=3
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
"