aboutsummaryrefslogtreecommitdiffstats
path: root/community/postgresql-plpgsql_check/APKBUILD
blob: 499de7359efbaed4b861ccf89384498e87e4827d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=postgresql-plpgsql_check
_pkgname=plpgsql_check
pkgver=2.1.2
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="
cf3bb255a92c3f881b5dfb36701ad4cdc9ac897a1d5deff281339c91e2c1c9771b008bed1dfab5ea071a9e8cba665658eb07a320ded848e14f490af8359e1319  plpgsql_check-2.1.2.tar.gz
"