[arch-commits] Commit in python-greenlet/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:58:17 UTC 2020


    Date: Monday, November 9, 2020 @ 15:58:16
  Author: felixonmars
Revision: 747269

archrelease: copy trunk to community-staging-x86_64

Added:
  python-greenlet/repos/community-staging-x86_64/
  python-greenlet/repos/community-staging-x86_64/PKGBUILD
    (from rev 747267, python-greenlet/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: python-greenlet/repos/community-staging-x86_64/PKGBUILD (from rev 747267, python-greenlet/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-09 15:58:16 UTC (rev 747269)
@@ -0,0 +1,51 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ralf Schmitt <ralf at systemexit.de>
+
+pkgbase=python-greenlet
+pkgname=(python-greenlet python2-greenlet)
+pkgver=0.4.17
+pkgrel=2
+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
+}



More information about the arch-commits mailing list