diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-06-13 07:01:32 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-06-13 07:01:57 +0000 |
commit | bdd0bddf505ab689f62a7bbad4b4861dd2cfa143 (patch) | |
tree | 3af1cedfc3888c3f9151b2c52c9fd70e2389d41e /testing | |
parent | efde3da28d96dd9fd825018f41ff0ebf658ae672 (diff) | |
download | aports-bdd0bddf505ab689f62a7bbad4b4861dd2cfa143.tar.bz2 aports-bdd0bddf505ab689f62a7bbad4b4861dd2cfa143.tar.xz |
testing/pgbadger: new aport
A fast PostgreSQL Log Analyzer
Diffstat (limited to 'testing')
-rw-r--r-- | testing/pgbadger/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/pgbadger/APKBUILD b/testing/pgbadger/APKBUILD new file mode 100644 index 0000000000..4d429e3464 --- /dev/null +++ b/testing/pgbadger/APKBUILD @@ -0,0 +1,37 @@ +# 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" |