summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-20 17:02:02 +0200
committerErich Eckner <git@eckner.net>2016-05-20 17:02:02 +0200
commit1f30b2a5aa5e467eb8dbc9aa720ec0b9b45a4ab7 (patch)
tree4396e39490f7c3e2c84c768b7174ff9bcac16678
parent5ac07dd1decccfba2d45c7e53c0d6fb786c6331d (diff)
downloadarchlinuxewe-1f30b2a5aa5e467eb8dbc9aa720ec0b9b45a4ab7.tar.xz
perl-apache-logformat-compiler neu
-rw-r--r--perl-apache-logformat-compiler/PKGBUILD75
1 files changed, 75 insertions, 0 deletions
diff --git a/perl-apache-logformat-compiler/PKGBUILD b/perl-apache-logformat-compiler/PKGBUILD
new file mode 100644
index 000000000..73bedd343
--- /dev/null
+++ b/perl-apache-logformat-compiler/PKGBUILD
@@ -0,0 +1,75 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (900e236c34f5f70361b2c0eed5444de99193a45a6e5d0c97dc30ac9769d87f1aa77dfcc5a79ef0dea0df9d666b25059c0bc95a7ce51f80bc58ce97da48008bc9)
+
+pkgname='perl-apache-logformat-compiler'
+pkgver='0.33'
+pkgrel='1'
+pkgdesc='Compile a log format string to perl-code'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+provides=(
+ 'perl-apache-logformat-compiler')
+depends=(
+ 'perl-posix-strftime-compiler>=0.30'
+ 'perl-time-local'
+ 'perl>=5.8.1')
+makedepends=(
+ 'perl-http-message'
+ 'perl-test-mocktime'
+ 'perl-test-simple>=0.98'
+ 'perl-test-requires'
+ 'perl-try-tiny>=0.12'
+ 'perl-uri-escape>=1.60'
+ 'perl-module-build>=0.38')
+url='https://metacpan.org/release/Apache-LogFormat-Compiler'
+_distdir="Apache-LogFormat-Compiler-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/K/KA/KAZEBURO/${_distdir}.tar.gz")
+sha512sums=('2d098316d02dd9d81dbdb9b4852917430fad0e8e8599464500ee838b5eb6b26ec30fff04f1a9d0fad87141f38b6262c0a0a9bb14c13c559c9b92b53649225e21')
+
+build() {
+ cd "${srcdir}/${_distdir}"
+
+ # Setting these env variables overwrites any command-line-options we don't want...
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \
+ MODULEBUILDRC=/dev/null
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ perl Makefile.PL
+ make
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build.PL
+ perl Build
+ fi
+}
+
+check() {
+ cd "${srcdir}/${_distdir}"
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ make test
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build test
+ fi
+}
+
+package() {
+ cd "${srcdir}/${_distdir}"
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ make install
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build install
+ fi
+
+ # remove perllocal.pod and .packlist
+ find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
+}