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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 16:49:57 UTC 2020


    Date: Monday, November 9, 2020 @ 16:49:57
  Author: foutrelis
Revision: 747583

archrelease: copy trunk to community-staging-any

Added:
  python-click-threading/repos/community-staging-any/
  python-click-threading/repos/community-staging-any/PKGBUILD
    (from rev 747582, python-click-threading/trunk/PKGBUILD)

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

Copied: python-click-threading/repos/community-staging-any/PKGBUILD (from rev 747582, python-click-threading/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:49:57 UTC (rev 747583)
@@ -0,0 +1,38 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
+
+_name=click-threading
+pkgname=python-click-threading
+pkgver=0.4.4
+pkgrel=8
+pkgdesc="Multithreaded Click apps made easy"
+arch=("any")
+url="https://pypi.python.org/pypi/click-threading"
+license=("MIT")
+depends=("python-click")
+makedepends=("python-setuptools" "python2-setuptools")
+checkdepends=("python-pytest" "python-click")
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+#source=("${_name}-${pkgver}.tar.gz::https://github.com/click-contrib/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('7fd17ad04065160a3278eab4e2c070424d9d69de145e88a8dc2ad9a3064162d91ad5c46b8d30e19640b2c4b420c0bb801ff6fd6dd9985f34ce2ede35cf8373f1')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  export PYTHONPATH=build/lib:${PYTHONPATH}
+  py.test
+}
+
+package() {
+  cd "${_name}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}



More information about the arch-commits mailing list