aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/perl-apache-logformat-compiler/APKBUILD39
1 files changed, 21 insertions, 18 deletions
diff --git a/main/perl-apache-logformat-compiler/APKBUILD b/main/perl-apache-logformat-compiler/APKBUILD
index d9cf07ff10..a5fd70e4e3 100644
--- a/main/perl-apache-logformat-compiler/APKBUILD
+++ b/main/perl-apache-logformat-compiler/APKBUILD
@@ -3,39 +3,42 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-apache-logformat-compiler
_pkgreal=Apache-LogFormat-Compiler
-pkgver=0.32
+pkgver=0.35
pkgrel=0
pkgdesc="Compile a log format string to perl-code"
-url="http://search.cpan.org/dist/Apache-LogFormat-Compiler/"
+url="https://metacpan.org/release/Apache-LogFormat-Compiler"
arch="noarch"
-license="GPL PerlArtistic"
+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 "
+cpanmakedepends="perl-test-requires perl-http-message perl-try-tiny perl-uri perl-test-mocktime"
depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends perl-module-build"
+makedepends="perl-dev $cpanmakedepends perl-module-build-tiny"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/K/KA/KAZEBURO/$_pkgreal-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/K/KA/KAZEBURO/Apache-LogFormat-Compiler-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- perl Build.PL installdirs=vendor || return 1
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ perl Build.PL --installdirs vendor --destdir "$pkgdir"
}
build() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- ./Build && ./Build test
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ ./Build
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
}
package() {
- cd "$_builddir"
- ./Build install destdir="$pkgdir" || return 1
+ cd "$builddir"
+ ./Build install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="0abb3275f934c7ac41d7a83c7d0565ad Apache-LogFormat-Compiler-0.32.tar.gz"
-sha256sums="bc112cdbc32f2e93c10bf661f39de509036e01c20c3a702a22cdb0be4426dd7f Apache-LogFormat-Compiler-0.32.tar.gz"
-sha512sums="aee9443bd067dc9a623b8f694e3d0c8fd2d3b7e4fe6a547153eff0c2046f22a4503a9b999df2df92bee1eb06c17cbbe626555bd70018891784af51d7623ac27f Apache-LogFormat-Compiler-0.32.tar.gz"
+sha512sums="9a4447e0be864e6ba3a6170daa6f219b0ddd6b765ab6fbe6125a808da76803fb4bf6eed131df793a8cf900378b5c72f11489d5429106b97931f6fbef08f9f349 Apache-LogFormat-Compiler-0.35.tar.gz"