updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / apache-qpid / PKGBUILD
blob57546753e0306329d6200e4dd4b00b00d1ee81d4
1 # Maintainer: Thomas S Hatch <thatch45 at gmail dot com>
2 pkgname=apache-qpid
3 pkgver=0.8
4 pkgrel=1
5 pkgdesc="An amqp system written in C++"
6 arch=('i686' 'x86_64')
7 url="http://qpid.apache.org/index.html"
8 license=('APACHE')
9 depends=('openais')
10 makedepends=('e2fsprogs' 'boost' 'python2')
11 optdepends=()
12 source=("http://www.reverse.net/pub/apache/qpid/0.8/qpid-cpp-$pkgver.tar.gz")
13 md5sums=('08007df4b7e0fe06b108d9024413f9d2')
15 build() {
16   cd "$srcdir/qpidc-$pkgver"
17   
18   ./configure \
19     PYTHON_LIB=$(python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") \
20     PYTHON=python2 \
21     --prefix=/usr \
22     --sysconfdir=/etc \
23     --localstatedir=/var
24   for PY in $(grep -rn '/usr/bin/env python' * | cut -d: -f1)
25   do
26     sed -i 's,^#!/usr/bin/env\ python,#!/usr/bin/env\ python2,' $PY
27   done
28   make
31 package() {
32   cd "$srcdir/qpidc-$pkgver"
34   make DESTDIR="$pkgdir/" install
37 # vim:set ts=2 sw=2 et: