summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2afa28137fbf0b079c09ecda4f840e0656f3720f (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
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Mark Vainomaa <mikroskeem@mikroskeem.eu>
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