[arch-commits] Commit in python-doit/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 16:52:32 UTC 2020
Date: Monday, November 9, 2020 @ 16:52:31
Author: foutrelis
Revision: 747638
archrelease: copy trunk to community-staging-any
Added:
python-doit/repos/community-staging-any/
python-doit/repos/community-staging-any/PKGBUILD
(from rev 747637, python-doit/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: python-doit/repos/community-staging-any/PKGBUILD (from rev 747637, python-doit/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 16:52:31 UTC (rev 747638)
@@ -0,0 +1,46 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=doit
+pkgname=python-doit
+pkgver=0.33.1
+pkgrel=2
+pkgdesc="A task management and automation tool"
+arch=('any')
+url="https://pydoit.org/"
+license=('MIT')
+depends=('python-cloudpickle' 'python-pyinotify' 'python-setuptools')
+checkdepends=('python-doit-py' 'python-pyflakes' '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=('852efa3b770ec5de7def1fad1167b8cdce1de7435b2ba5e4af43a84c84df0cbf960d8d5c4c9f526f303d19c7536f745c2c7700daaced984ec86fb4202f894170')
+b2sums=('be294246447d36011274d57b5300b4451847751f228622bcd5a45f91367371ed5dd9c40a2476e558be8137b16fefda4bf6f1795108d0c982990abc62db5560e6')
+
+prepare() {
+ mv -v "$_name-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build/lib:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --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