summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3dd1f1481d70651adf0eb51cffb7c32ddd5fcf6c (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
# Maintainer: Brendan MacDonell <brendan@macdonell.net>
pkgname=mongo_fdw
pkgver=4.0.0
pkgrel=2
pkgdesc="PostgreSQL foreign data wrapper for MongoDB"
arch=('i686' 'x86_64')
url="https://github.com/EnterpriseDB/mongo_fdw"
license=('LGPL3')
depends=('json-c' 'mongo-c-driver>=1.2' 'postgresql')
install=mongo_fdw.install
_relname="REL-${pkgver//\./_}"
source=("https://github.com/EnterpriseDB/${pkgname}/archive/${_relname}.tar.gz"
        'jsonc-compile.patch'
        'subobject-access.patch')
md5sums=('9705f9d0c9affefa4184fb66051b7c90'
         'd97a981956224be3cddceecd3ecc0742'
         '68a315f57525226505933f9d4ea7bad5')

prepare() {
	cd "${pkgname}-${_relname}"
        patch -p1 -i ../jsonc-compile.patch
        patch -p1 -i ../subobject-access.patch
}

build() {
	cd "${pkgname}-${_relname}"
	make -f Makefile.meta
}

package() {
	cd "${pkgname}-${_relname}"
	make DESTDIR="${pkgdir}" -f Makefile.meta install
}