# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
setvar pkgname = 'postgresql-plpgsql_check'
setvar _pkgname = 'plpgsql_check'
setvar pkgver = '1.2.1'
setvar pkgrel = '0'
setvar pkgdesc = ""Additional tools for plpgsql functions validation""
setvar url = ""https://github.com/okbob/plpgsql_check""
setvar arch = ""all""
setvar license = ""BSD""
setvar depends = ""postgresql""
setvar makedepends = ""postgresql-dev""
setvar source = ""$_pkgname-$pkgver.tar.gz::https://github.com/okbob/$_pkgname/archive/v$pkgver.tar.gz""
setvar builddir = ""$srcdir/$_pkgname-$pkgver""
setvar options = ""!check""  # XXX: installcheck requires running PostgreSQL

proc build {
	cd $builddir
	make USE_PGXS=1 all
}

proc package {
	cd $builddir
	make USE_PGXS=1 DESTDIR="$pkgdir" install
}

setvar sha512sums = ""bf41a9e89b387d172780264707a5e33d30ffecda76ed29d7077c477f3c70a554a86e41a8fb8f9accb773e6e1d4f0e5744b6d012db00cf2e20ded2b350ec5121d  plpgsql_check-1.2.1.tar.gz""