aboutsummaryrefslogtreecommitdiffstats
path: root/testing/postgresql-pglogical/APKBUILD
blob: 97b3b89cb4530ab1d4d43699baaa66784a55fe76 (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Contributor: Eugene Pirogov <iamexile@gmail.com>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=postgresql-pglogical
_pkgname=pglogical
pkgver=2.0.1
_pgver=9.6
pkgrel=0
pkgdesc="Logical Replication extension for PostgreSQL $_pgver"
url="https://2ndquadrant.com/en/resources/pglogical/"
arch="all"
license="custom"
depends="postgresql>=$_pgver.0"
makedepends="libedit-dev libxml2-dev postgresql-dev>=$_pgver.0 zlib-dev"
source="http://packages.2ndquadrant.com/pglogical/tarballs/$_pkgname-$pkgver.tar.bz2
        001-fix-stdin-handling.patch"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	make USE_PGXS=1 all
}

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

sha512sums="e1016484c06ce4a9466eb415ef5d0955b61c68c78e6fa47e84ec82ebef3979ac2eb83460f7c2262a9deac85cfdb365781d1784e8572a4efd5aae5aa3f8ea29db  pglogical-2.0.1.tar.bz2
89df4ed3992f43a0a37eebb5e06dedd2668b6acfad987b3c37e647c05718a9eb0d330d195f4f4426ffc5fad3e1fc7f156c10d3ea6dc7ee778bc2a5b27c6f138f  001-fix-stdin-handling.patch"