[arch-commits] Commit in python-doit/repos (2 files)
David Runge
dvzrv at archlinux.org
Sat Sep 8 23:10:48 UTC 2018
Date: Saturday, September 8, 2018 @ 23:10:47
Author: dvzrv
Revision: 378830
archrelease: copy trunk to community-testing-any
Added:
python-doit/repos/community-testing-any/
python-doit/repos/community-testing-any/PKGBUILD
(from rev 378829, python-doit/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-doit/repos/community-testing-any/PKGBUILD (from rev 378829, python-doit/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-09-08 23:10:47 UTC (rev 378830)
@@ -0,0 +1,49 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=doit
+pkgname=python-doit
+pkgver=0.31.1
+pkgrel=1
+pkgdesc="A task management and automation tool"
+arch=('any')
+url="http://pydoit.org/"
+license=('MIT')
+depends=('python-cloudpickle' 'python-setuptools')
+#checkdepends=('flake8' 'python-coverage' 'python-pytest')
+optdepends=('python-pyinotify: notifications'
+ '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