aboutsummaryrefslogtreecommitdiffstats
path: root/community/pgbadger/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-06-14 12:42:19 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-06-14 12:42:19 +0000
commit615c83667013bb22bb92f24fbcb32bac5b17b892 (patch)
treed9c59195fb1080537aef0660878aa4c757b0f701 /community/pgbadger/APKBUILD
parent11a8a5a336b81348c1647a8552b6a96c38a6d509 (diff)
downloadaports-615c83667013bb22bb92f24fbcb32bac5b17b892.tar.bz2
aports-615c83667013bb22bb92f24fbcb32bac5b17b892.tar.xz
community/pgbadger: moved from testing
Diffstat (limited to 'community/pgbadger/APKBUILD')
-rw-r--r--community/pgbadger/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/pgbadger/APKBUILD b/community/pgbadger/APKBUILD
new file mode 100644
index 0000000000..4d429e3464
--- /dev/null
+++ b/community/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"