summaryrefslogtreecommitdiff
path: root/community/python2-gevent-beta/PKGBUILD
blob: 6d727edbc4e81ced3173d6cdc114bc786a572429 (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
# $Id: PKGBUILD 95610 2013-08-15 01:52:53Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>

_pkgbase=gevent
pkgname=python2-${_pkgbase}-beta
pkgver=1.0rc2
pkgrel=4
pkgdesc="Python networking library based on greenlet and libev - Beta version"
arch=('i686' 'x86_64')
url="http://www.gevent.org/"
license=('MIT')
depends=('python2-greenlet')
makedepends=('cython2')
conflicts=('python2-gevent')
provides=("python2-gevent=$pkgver")
source=("https://github.com/surfly/gevent/archive/$pkgver.tar.gz")

package() {
  cd "$srcdir/${_pkgbase}-${pkgver}"
  msg "Starting make..."
  
  # Workaround
  unset MAKEFLAGS

  LIBEV_EMBED=1 \
  CARES_EMBED=1 \
  CYTHON=cython2 \
  PYTHON=python2 \
  python2 setup.py install \
    --prefix=/usr \
    --root="$pkgdir"

  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

md5sums=('e1bce8e15c7ebb08788978c0f4860f9d')