summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 921abd9aa0239c0854f6b86c6e2b950bc0ccb1c4 (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
42
43
44
45
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Felix Yan <felixonmars@gmail.com>
# Contributor: Ralf Schmitt <ralf@systemexit.de>
# Contributor: yafengabc <yafengabc@gmail.com>

pkgname=pypy-gevent-git
pkgver=20150917
pkgrel=1
pkgdesc="Coroutine-based concurrency library for PyPy"
arch=('i686' 'x86_64')
depends=('pypy')
makedepends=('cython' 'git' 'pypy-setuptools')
url="https://github.com/surfly/gevent"
license=('MIT')
source=(${pkgname%-git}::git+https://github.com/surfly/gevent)
sha256sums=('SKIP')
provides=('pypy-gevent')
conflicts=('pypy-gevent')

pkgver() {
  cd ${pkgname%-git}
  git log -1 --format="%cd" --date=short | sed "s|-||g"
}

build() {
  cd ${pkgname%-git}

  msg 'Building...'
  LIBEV_EMBED=1 \
  CARES_EMBED=1 \
  CYTHON=cython \
  PYTHON=pypy \
  pypy setup.py build
}

package() {
  cd ${pkgname%-git}

  msg 'Installing license...'
  install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"

  msg 'Installing...'
  pypy setup.py install -O1 --root="$pkgdir"
}