summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 01:25:14 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 01:25:14 +0000
commitfe21860c14828f049acc905220ff0cd00a82e5f4 (patch)
tree55c862886c54ff4194d66a5ffe6bfede012a41b9
parentd10da22d181cf0ee52ebeb9900dfebbbf15e3d77 (diff)
downloadpackages-fe21860c14828f049acc905220ff0cd00a82e5f4.tar.gz
packages-fe21860c14828f049acc905220ff0cd00a82e5f4.tar.bz2
packages-fe21860c14828f049acc905220ff0cd00a82e5f4.tar.xz
packages-fe21860c14828f049acc905220ff0cd00a82e5f4.zip
user/perl-apache-logformat-compiler: new package
-rw-r--r--user/perl-apache-logformat-compiler/APKBUILD35
1 files changed, 35 insertions, 0 deletions
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 <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+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"