Created
November 20, 2013 10:18
-
-
Save sseemayer/7560856 to your computer and use it in GitHub Desktop.
python2-amqp 1.3.3 PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Xeross <contact@xeross.me> | |
# Contributor: Timothée Ravier <tim@siosm.fr> | |
pkgname=python2-amqp | |
pkgver=1.3.3 | |
pkgrel=1 | |
pkgdesc="Low-level AMQP client for Python (fork of amqplib)" | |
arch=('any') | |
url="https://github.com/celery/py-amqp/" | |
license=("LGPL") | |
depends=('python2>=2.6' 'setuptools') | |
source=(https://pypi.python.org/packages/source/a/amqp/amqp-${pkgver}.tar.gz) | |
sha256sums=('e65da719efcd1d0a9cff44431e2476f88de8ffeeb7abc0c77e82361c9281170f') | |
prepare() { | |
cd amqp-${pkgver} | |
# replace /usr/bin/env python with python2 | |
find . -name '*.py' -exec sed -i -e '1 s/python\s*$/python2/' {} \; | |
} | |
package() { | |
cd amqp-${pkgver} | |
python2 ./setup.py install --root="${pkgdir}" --prefix=/usr | |
} | |
# vim: ft=sh syn=sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment