# Maintainer: Leonardo Arena pkgname=pgbadger pkgver=11.1 pkgrel=0 pkgdesc="A fast PostgreSQL Log Analyzer" url="https://github.com/darold/pgbadger" arch="noarch" license="Custom" makedepends="perl-dev perl-json-xs coreutils gzip" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/darold/pgbadger/archive/v$pkgver.tar.gz" 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="aad3c998fe8b4734cfbfd907a19cde975d2a1f3dd1b6aa26083904ea96e1a38399dbcf2fee2f2bc969037c144ad8ee44a630ce8859fa6e7303d24e6296fc066b pgbadger-11.1.tar.gz"