summaryrefslogtreecommitdiff
path: root/pcr/python2-carrot/PKGBUILD
blob: ebf4eec8b5a6254b8a75e8550cd8c3567bd8b7c6 (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
# Contributor (Arch): Lukas Linhart <bugs@almad.net>
# Contributor (Arch): Marco Elver <marco.elver AT gmail.com>
# Contributor (Arch): Jacob Melton <jmelton116@gmail.com>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO>

pkgname=python2-carrot
pkgver=0.10.7
pkgrel=1
pkgdesc="AMQP Messaging Framwork for Python"
arch=('any')
url='http://pypi.python.org/pypi/carrot/0.10.7'
license=('BSD3')
depends=('python2' 'python2-amqplib')
makedepends=('setuptools')
source=("http://pypi.python.org/packages/source/c/carrot/carrot-$pkgver.tar.gz")
options=(!emptydirs)

prepare() {
  cd ${srcdir}/carrot-$pkgver
  find . -name '*.py' -exec sed -i -e '1 s/python\s*$/python2/' {} \;
}

package() {
  cd ${srcdir}/carrot-$pkgver
  python2 setup.py install --root=$pkgdir/ --optimize=1
}

md5sums=('530a0614de3a669314c3acd4995c54d5')