# Contributor: Leonardo Arena pkgname=postgresql-bdr-extension pkgver=0.9.3 pkgrel=0 pkgdesc="PostgreSQL bidirectional replication (BDR) extension" url="https://wiki.postgresql.org/wiki/BDR_Administration" arch="all" license="GPL" depends= depends_dev= makedepends="$depends_dev postgresql-bdr-dev" install= subpackages="$pkgname-doc" source="http://packages.2ndquadrant.com/postgresql-bdr94-2ndquadrant/tarballs/bdr-$pkgver.tar.bz2" _builddir="$srcdir"/bdr-$pkgver prepare() { cd "$_builddir" # apply patches here } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-bdr \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install # remove the 2 lines below (and this) if there is no init.d script # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } md5sums="43689fd290be1ac80d9849832636500b bdr-0.9.3.tar.bz2" sha256sums="416ad2852a0fe8e4629e596476fc0ac2fe5ca9e9b2440ce32f33366641f55d54 bdr-0.9.3.tar.bz2" sha512sums="8a129ecd45d69d056d750c043481aad000403e241a7fa89bfde7a758baf6262491a8727b21ea9454d4f989404fd2acb45cd6aa0758e4eaf5fa94c9a73f8c16c2 bdr-0.9.3.tar.bz2"