29 lines
899 B
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=postgresql-plpgsql_check
_pkgname=plpgsql_check
pkgver=1.16.0
pkgrel=0
pkgdesc="Additional tools for plpgsql functions validation"
url="https://github.com/okbob/plpgsql_check"
arch="all"
license="MIT"
depends="postgresql"
makedepends="postgresql-dev"
subpackages="$pkgname-doc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/okbob/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # XXX: installcheck requires running PostgreSQL
build() {
make USE_PGXS=1 all
}
package() {
make USE_PGXS=1 DESTDIR="$pkgdir" install
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses
}
sha512sums="e07e56dc44e90ea523664d5d96c909aebd8ff1ae85553e818ed057b2428e4524ba53c02b876050c9aaee7645192c5e69e13c39ff84ebee504b22531b7610efcd plpgsql_check-1.16.0.tar.gz"