# Contributor: Jakub Jirutka # Contributor: Eugene Pirogov # Maintainer: Jakub Jirutka pkgname=postgresql-pglogical _pkgname=pglogical pkgver=2.2.0 pkgrel=0 pkgdesc="Logical Replication extension for PostgreSQL" url="https://2ndquadrant.com/en/resources/pglogical/" arch="all" license="PostgreSQL" depends="postgresql" makedepends="libedit-dev libxml2-dev postgresql-dev 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="0c06656f0309c03193402757362fee69b579cd26070d82a01b473c7b9f2fdf5a9b002e849f265a29aef6b11007cfa99038952a71538997fe16d7f12c1a565e15 pglogical-2.2.0.tar.bz2 89df4ed3992f43a0a37eebb5e06dedd2668b6acfad987b3c37e647c05718a9eb0d330d195f4f4426ffc5fad3e1fc7f156c10d3ea6dc7ee778bc2a5b27c6f138f 001-fix-stdin-handling.patch"