aports/community/postgresql-plpgsql_check/APKBUILD

32 lines
929 B
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=postgresql-plpgsql_check
_pkgname=plpgsql_check
pkgver=2.3.4
pkgrel=0
pkgdesc="Additional tools for plpgsql functions validation"
url="https://github.com/okbob/plpgsql_check"
arch="all"
license="MIT"
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() {
depends="postgresql$(pg_config --major-version)"
make USE_PGXS=1 DESTDIR="$pkgdir" install
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses
}
sha512sums="
664cadc4b605370e5b733d3bb21be28c8c78c830b6aefcae8c649696dbee1c237f3bc0550200fb9cfb9effb64da4089a055f0347f2b07deed0aa0fc9a0ac2801 plpgsql_check-2.3.4.tar.gz
"