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

Felix Yan felixonmars at archlinux.org
Fri Oct 25 19:59:46 UTC 2019


    Date: Friday, October 25, 2019 @ 19:59:46
  Author: felixonmars
Revision: 519674

archrelease: copy trunk to community-staging-any

Added:
  python-doit/repos/community-staging-any/
  python-doit/repos/community-staging-any/PKGBUILD
    (from rev 519671, python-doit/trunk/PKGBUILD)

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

Copied: python-doit/repos/community-staging-any/PKGBUILD (from rev 519671, python-doit/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 19:59:46 UTC (rev 519674)
@@ -0,0 +1,48 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=doit
+pkgname=python-doit
+pkgver=0.31.1
+pkgrel=3
+pkgdesc="A task management and automation tool"
+arch=('any')
+url="https://pydoit.org/"
+license=('MIT')
+depends=('python-cloudpickle' 'python-pyinotify' 'python-setuptools')
+#checkdepends=('flake8'  'python-coverage' 'python-pytest')
+optdepends=('bash-completion: autocomplete for bash'
+            'zsh-completions: autocomplete for ZSH')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('31235cb46a73adc2d3e726dce24dd9632f5b1ef00d313bf1c42ff895a03eff41be0ec7ae14a004e742d50003c2da17f29bd3392a49d80e73cfb59c12bd152d9d')
+
+prepare() {
+  mv -v "$_name-$pkgver" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+# tests are broken:
+# https://github.com/pydoit/doit/issues/269
+#check() {
+#  cd "$pkgname-$pkgver"
+#  export PYTHONPATH=build/lib:${PYTHONPATH}
+#  py.test
+#}
+
+package() {
+  cd "$pkgname-$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 {AUTHORS,CHANGES,CONTRIBUTING.md,README.rst} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 "bash_completion_${_name}" \
+    "${pkgdir}/usr/share/bash-completion/completions/${_name}"
+  install -vDm 644 "zsh_completion_${_name}" \
+    "${pkgdir}/usr/share/zsh/site-functions/_${_name}"
+}



More information about the arch-commits mailing list