# Maintainer: Mark Vainomaa pkgname=python-pulsar-git pkgver=1.4.0.dev20160719065823 pkgrel=1 pkgdesc="Event driven concurrent framework using asyncio" arch=("any") url="http://pythonhosted.org/pulsar/" license=('BSD') depends=("python") makedepends=("python-setuptools" "cython") provides=("python-pulsar") conflicts=("python-pulsar") replaces=("python-pulsar") source=("python-pulsar-git::git+https://github.com/quantmind/pulsar.git") md5sums=("SKIP") build() { true } prepare(){ cd "$pkgname" # Build needs to be done here to make pkgver() working python setup.py build >&2 } pkgver() { cd "$pkgname" # No, git hackery didn't work here. cat pulsar.egg-info/PKG-INFO |grep "^Version:" | awk '{print $2}' } package() { cd "$pkgname" python setup.py install --root="${pkgdir}/" --optimize=1 install -d -m 755 ${pkgdir}/usr/share/licenses/${pkgname} install -D -m 644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE } # vim: ft=sh