Date: Tuesday, September 22, 2020 @ 13:28:13 Author: felixonmars Revision: 711379
archrelease: copy trunk to community-testing-x86_64 Added: python-greenlet/repos/community-testing-x86_64/ python-greenlet/repos/community-testing-x86_64/PKGBUILD (from rev 711378, python-greenlet/trunk/PKGBUILD) ----------+ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) Copied: python-greenlet/repos/community-testing-x86_64/PKGBUILD (from rev 711378, python-greenlet/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-09-22 13:28:13 UTC (rev 711379) @@ -0,0 +1,51 @@ +# Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com> +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Ralf Schmitt <r...@systemexit.de> + +pkgbase=python-greenlet +pkgname=(python-greenlet python2-greenlet) +pkgver=0.4.17 +pkgrel=1 +pkgdesc="Lightweight in-process concurrent programming" +license=("MIT") +arch=('x86_64') +url="https://pypi.org/project/greenlet/" +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://files.pythonhosted.org/packages/source/g/greenlet/greenlet-${pkgver}.tar.gz") +sha512sums=('41afd80a6cd5e9cf9c8149016f24d0944d2651288d50094ef04bb6759202903c436af639872d7aab631ed8fe13aad7d4405beb428415b198a3ba30a96d4bd3de') + +prepare() { + cp -a greenlet-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/greenlet-$pkgver + python setup.py build + + cd "$srcdir"/greenlet-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/greenlet-$pkgver + python setup.py test + + cd "$srcdir"/greenlet-$pkgver-py2 + python2 setup.py test +} + +package_python-greenlet() { + depends=('python') + + cd greenlet-$pkgver + python setup.py install -O1 --root="$pkgdir" + install -Dm0644 LICENSE.PSF "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.PSF +} + +package_python2-greenlet() { + depends=('python2') + + cd greenlet-$pkgver-py2 + python2 setup.py install -O1 --root="$pkgdir" + install -Dm0644 LICENSE.PSF "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.PSF +}