# Maintainer: Leonardo Arena pkgname=pgbadger pkgver=11.0 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" builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="167534d61cb28df6cb7eae7efe788d3f6bbad1c614468e905a9b678a76b3a2dfc0eb192b595ac4dc332cd694e820f1603b79d83bc934b7dfe3d226019f6a9c15 pgbadger-11.0.tar.gz"