Commit bdd0bddf authored by Leonardo Arena's avatar Leonardo Arena

testing/pgbadger: new aport

A fast PostgreSQL Log Analyzer
parent efde3da2
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=pgbadger
pkgver=9.1
pkgrel=0
pkgdesc="A fast PostgreSQL Log Analyzer "
url="https://github.com/dalibo/pgbadger"
arch="noarch"
license="Custom"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/dalibo/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="e3841516dd56ea0aeae397c8264302881df3b07a86063f7813f593ba817a4f3417559b88e2b9e23fec811d3dfd716589f56092be106960e88d1800a94d3d83c3 pgbadger-9.1.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment