diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d4da8154a24b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python-gevent-git + pkgdesc = Coroutine-based concurrency library for Python + pkgver = 20150904 + pkgrel = 1 + url = https://github.com/surfly/gevent + arch = i686 + arch = x86_64 + license = MIT + makedepends = cython + makedepends = git + makedepends = python-setuptools + depends = python + depends = python-greenlet + provides = python-gevent + conflicts = python-gevent + source = python-gevent::git+https://github.com/surfly/gevent + sha256sums = SKIP + +pkgname = python-gevent-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..48c951bc4b1e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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=python-gevent-git +pkgver=20150904 +pkgrel=1 +pkgdesc="Coroutine-based concurrency library for Python" +arch=('i686' 'x86_64') +depends=('python' 'python-greenlet') +makedepends=('cython' 'git' 'python-setuptools') +url="https://github.com/surfly/gevent" +license=('MIT') +source=(${pkgname%-git}::git+https://github.com/surfly/gevent) +sha256sums=('SKIP') +provides=('python-gevent') +conflicts=('python-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=python \ + python setup.py build +} + +package() { + cd ${pkgname%-git} + + msg 'Installing license...' + install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE" + + msg 'Installing...' + python setup.py install -O1 --root="$pkgdir" +} |