# Contributor: Pedro Filipe # Contributor: G.J.R. Timmer # Maintainer: G.J.R. Timmer # TODO: run tests! pkgname=check_postgres pkgver=2.24.0 pkgrel=0 pkgdesc="PostgreSQL monitoring script" url="https://bucardo.org/wiki/Check_postgres" arch="noarch" license="BSD" depends="postgresql perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/bucardo/$pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" perl Makefile.PL \ INSTALL_BASE=/usr \ INSTALLMAN1DIR=/usr/share/man/man1 \ INSTALLSITEMAN1DIR=/usr/share/man/man1 \ INSTALLMAN3DIR=/usr/share/man/man3 \ INSTALLSITEMAN3DIR=/usr/share/man/man3 make } package() { cd "$builddir" make DESTDIR="$pkgdir" install # Fix file extension because MakeMaker cannot do this mv "$pkgdir"/usr/bin/check_postgres.pl "$pkgdir"/usr/bin/check_postgres } sha512sums="17567b7cd141797748b117a607663d5c3a151d3b3ea9956d35fe8b087f7987ed9dde773951c85b84d89ba2d06f1ce205e1b92e9162649ae894ef1ba200cc8a83 check_postgres-2.24.0.tar.gz"