diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/postgresql-bdr-extension/APKBUILD | 38 |
1 files changed, 10 insertions, 28 deletions
diff --git a/testing/postgresql-bdr-extension/APKBUILD b/testing/postgresql-bdr-extension/APKBUILD index 3b3646583d..c3d55021f6 100644 --- a/testing/postgresql-bdr-extension/APKBUILD +++ b/testing/postgresql-bdr-extension/APKBUILD @@ -1,40 +1,20 @@ # Contributor: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=postgresql-bdr-extension pkgver=0.8.0 -pkgrel=0 -_gitcommit= -_gittag="bdr-plugin/$pkgver" -_giturl="git://git.postgresql.org/git/2ndquadrant_bdr.git" -_gitbranch="bdr-plugin/stable" -[ -z "${_gitcommit}" ] && _suffix="_src" || _suffix="${_gitcommit}" +pkgrel=1 pkgdesc="PostgreSQL bidirectional replication (BDR) extension" url="https://wiki.postgresql.org/wiki/BDR_Administration" arch="x86_64" license="GPL" depends= depends_dev= -makedepends="$depends_dev postgresql-dev" +makedepends="$depends_dev postgresql-bdr-dev" install= subpackages="$pkgname-doc" -source="http://distfiles.alpinelinux.org/distfiles/$pkgname-$pkgver-$_suffix.tar.bz2" +source="http://packages.2ndquadrant.com/postgresql-bdr94-2ndquadrant/tarballs/bdr-$pkgver.tar.bz2" -_builddir="$srcdir"/$pkgname-$pkgver - -snapshot() { - mkdir -p "$srcdir" - cd "${SRCDEST:-$srcdir}" - if ! [ -d $pkgname.git ]; then - git clone --bare --branch $_gitbranch $_giturl $pkgname.git || return 1 - cd $pkgname.git - else - cd $pkgname.git - git fetch || return 1 - fi - git archive --prefix=$pkgname-$pkgver/ -o "$SRCDEST"/$pkgname-$pkgver-$_suffix.tar $_gittag - rm "$SRCDEST"/$pkgname-$pkgver-$_suffix.tar.bz2 - bzip2 "$SRCDEST"/$pkgname-$pkgver-$_suffix.tar -} +_builddir="$srcdir"/bdr-$pkgver prepare() { cd "$_builddir" @@ -46,7 +26,9 @@ build() { ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + --enable-bdr \ + || return 1 make || return 1 } @@ -59,6 +41,6 @@ package() { # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } -md5sums="03aa1e08f8d226315c6227c4fb674f24 postgresql-bdr-extension-0.8.0-_src.tar.bz2" -sha256sums="dce9c15331911fb34fd8f5c35fab2e13125e3ef1f0c8e6e10702b1be3b7d5ab9 postgresql-bdr-extension-0.8.0-_src.tar.bz2" -sha512sums="f41f1053e6ca660c4c695ee7f398318518b28bf23670435dc6a7dcbb8d91162f6f79822f2e52cdd33656dc8b26fcc8f0cbecad47c553afa34e22f4df40abe387 postgresql-bdr-extension-0.8.0-_src.tar.bz2" +md5sums="03350f76ef34d5d503a14b968c4944e7 bdr-0.8.0.tar.bz2" +sha256sums="253200b761e3f87f5eae10c7a4221728fbaacaff4277814c6c33ffa4854598a9 bdr-0.8.0.tar.bz2" +sha512sums="735438ed9ba341a4ec44f4ee2174cae9595c2b74c21a6ac88f848cfddb0082c76a4e68c848e00ab6712fe7d2467735709bf992db60549d48b07eadcbac910d9a bdr-0.8.0.tar.bz2" |