From 0a9a064dde6943f5ce78d9eb03f403326cd5b4ef Mon Sep 17 00:00:00 2001 From: aurelien Date: Sat, 24 Nov 2012 09:24:52 +0100 Subject: glance nova python2-amqplib python2-carrot python2-daemon python2-eventlet python2-iso8601 python2-kombu python2-netaddr python2-passlib python2-pkgtools python2-sendfile python2-suds python2-webob pyt hon-anyjson python-paste-deploy python-paste python-repoze.lru python-routes python-wsgiref python-xattr --- pcr/python2-amqplib/PKGBUILD | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pcr/python2-amqplib/PKGBUILD (limited to 'pcr/python2-amqplib/PKGBUILD') diff --git a/pcr/python2-amqplib/PKGBUILD b/pcr/python2-amqplib/PKGBUILD new file mode 100644 index 000000000..d67800a06 --- /dev/null +++ b/pcr/python2-amqplib/PKGBUILD @@ -0,0 +1,22 @@ +# Contributor: Tevin Zhang +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres + +pkgname=python2-amqplib +pkgver=1.0.2 +pkgrel=3 +pkgdesc="Python client for the Advanced Message Queuing Procotol (AMQP). Uses Python2." +arch=('any') +url="http://code.google.com/p/py-amqplib/" +license=("LGPL") +depends=('python2>=2.6' 'setuptools') +source=(http://py-amqplib.googlecode.com/files/amqplib-$pkgver.tgz) + +build() { + cd $srcdir/amqplib-$pkgver + + # replace /usr/bin/env python with python2 + find . -name '*.py' -exec sed -i -e '1 s/python\s*$/python2/' {} \; + + python2 ./setup.py install --root=$pkgdir --prefix=/usr || return 1 +} + -- cgit v1.2.3-54-g00ecf