SHARE
TWEET

Untitled

a guest Aug 10th, 2011 59 Never
  1. pkgname=python2-amqplib
  2. pkgver=1.0.0
  3. pkgrel=1
  4. pkgdesc="Python client for the Advanced Message Queuing Procotol (AMQP). Uses Python2."
  5. arch=('any')
  6. url="http://code.google.com/p/py-amqplib/"
  7. license=("LGPL")
  8. depends=('python2>=2.6' 'setuptools')
  9. source=(http://py-amqplib.googlecode.com/files/amqplib-$pkgver.tgz)
  10. md5sums=('38bd5e1f1d689de731f56a4d8d2d952e')
  11.  
  12. build() {
  13.   cd $startdir/src/amqplib-$pkgver
  14.  
  15.   # replace /usr/bin/env python with python2
  16.   find . -name '*.py' -exec sed -i -e '1 s/python\s*$/python2/' {} \;
  17.  
  18.   python2 ./setup.py install --root=$pkgdir --prefix=/usr || return 1
  19. }
RAW Paste Data
Top