aboutsummaryrefslogtreecommitdiffstats
path: root/main/postgresql-bdr-extension/APKBUILD
blob: c3c191dfc3af030c10560e19a3583e2965c088b5 (plain)
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
32
33
34
35
36
37
38
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=postgresql-bdr-extension
pkgver=1.0.2
pkgrel=1
pkgdesc="PostgreSQL bidirectional replication (BDR) extension"
url="https://wiki.postgresql.org/wiki/BDR_Administration"
arch="all"
license="GPL"
makedepends="$depends_dev postgresql-bdr-dev"
subpackages="$pkgname-doc"
#FIXME: mkdir: can't create directory 'tmp_check/data': File exists
options="!check"
source="http://packages.2ndquadrant.com/postgresql-bdr94-2ndquadrant/tarballs/bdr-$pkgver.tar.bz2"

builddir="$srcdir"/bdr-$pkgver

build() {
	cd "$builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-bdr \
		|| return 1
	make || return 1
}

check() {
	cd "$builddir"
	make DESTDIR="$pkgdir" check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="1654e357fc891ec55f4c086e9347f7dbde2e87ab96b94d8aacc8f2ccfd6c3d0b229b43af808807b6ead4419fbbe6e6485a71edef95984b6af1e6886f298067da  bdr-1.0.2.tar.bz2"