# Maintainer: Leonardo Arena pkgname=pgbadger pkgver=12.0 pkgrel=1 pkgdesc="A fast PostgreSQL Log Analyzer" url="https://github.com/darold/pgbadger" arch="noarch" license="Custom" makedepends="perl-dev perl-json-xs coreutils gzip" checkdepends="perl-text-csv_xs" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/darold/pgbadger/archive/v$pkgver.tar.gz" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } check() { make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums=" c853c48cb7f18eef3edd579b9ddd1f371365c31df23d49534385cfb5649d7a582ecdae15c8aa7c6ab20a8bfe936c8d5858224ca80ffe28c828310aa04fc49f46 pgbadger-12.0.tar.gz "