From fe21860c14828f049acc905220ff0cd00a82e5f4 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 18 Nov 2018 01:25:14 +0000 Subject: user/perl-apache-logformat-compiler: new package --- user/perl-apache-logformat-compiler/APKBUILD | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 user/perl-apache-logformat-compiler/APKBUILD (limited to 'user/perl-apache-logformat-compiler') diff --git a/user/perl-apache-logformat-compiler/APKBUILD b/user/perl-apache-logformat-compiler/APKBUILD new file mode 100644 index 000000000..5acc4ffbc --- /dev/null +++ b/user/perl-apache-logformat-compiler/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: A. Wilcox +# Maintainer: Adélie Perl Team +pkgname=perl-apache-logformat-compiler +_pkgname=Apache-LogFormat-Compiler +pkgver=0.35 +pkgrel=0 +pkgdesc="Compile a log format string to Perl code" +url="https://metacpan.org/release/Apache-LogFormat-Compiler" +arch="noarch" +license="Artistic-1.0-Perl OR GPL-2.0-only" +depends="perl-posix-strftime-compiler perl-try-tiny" +checkdepends="perl-http-message perl-test-mocktime" +makedepends="perl-dev 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/Apache-LogFormat-Compiler-$pkgver" + +build() { + cd "$builddir" + perl Build.PL --destdir="$pkgdir" --prefix="/usr" --installdirs=vendor + ./Build +} + +check() { + cd "$builddir" + ./Build test +} + +package() { + cd "$builddir" + ./Build install destdir="$pkgdir" + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="9a4447e0be864e6ba3a6170daa6f219b0ddd6b765ab6fbe6125a808da76803fb4bf6eed131df793a8cf900378b5c72f11489d5429106b97931f6fbef08f9f349 Apache-LogFormat-Compiler-0.35.tar.gz" -- cgit v1.2.3-70-g09d2