blob: 5e55b95ebdfbca97ff536c8bf1cde0db07e05233 (
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
|
pkgname=pg_amqp
pkgver=v0.4.1.r6.g240d477
pkgrel=1
pkgdesc="AMQP support for Postgres"
arch=('i686' 'x86_64')
url="https://github.com/omniti-labs/pg_amqp"
license=('BSD')
makedepends=('git')
depends=('llvm' 'postgresql')
source=('git+https://github.com/omniti-labs/pg_amqp.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$pkgname"
make PG_CPPFLAGS=-Wno-error=implicit-int
}
package() {
cd "$srcdir/$pkgname"
# Overwrite INSTALL to fix
# http://postgresql.1045698.n5.nabble.com/PostgreSQL-9-3-beta-breaks-some-extensions-quot-make-install-quot-td5755344.html
make PREFIX=/usr DESTDIR="$pkgdir" INSTALL=/usr/lib/postgresql/pgxs/config/install-sh install
}
|