[arch-commits] Commit in todoman/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Nov 13 17:52:29 UTC 2020
Date: Friday, November 13, 2020 @ 17:52:29
Author: foutrelis
Revision: 753954
archrelease: copy trunk to community-staging-any
Added:
todoman/repos/community-staging-any/
todoman/repos/community-staging-any/PKGBUILD
(from rev 753953, todoman/trunk/PKGBUILD)
----------+
PKGBUILD | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
Copied: todoman/repos/community-staging-any/PKGBUILD (from rev 753953, todoman/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-13 17:52:29 UTC (rev 753954)
@@ -0,0 +1,68 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=todoman
+pkgver=3.8.0
+pkgrel=4
+pkgdesc="A simple, standards-based, cli todo (aka: task) manager"
+arch=('any')
+url="https://github.com/pimutils/todoman"
+license=('ISC')
+depends=('python-atomicwrites' 'python-click' 'python-click-log'
+'python-configobj' 'python-dateutil' 'python-humanize' 'python-icalendar'
+'python-parsedatetime' 'python-pyxdg' 'python-setuptools' 'python-tabulate'
+'python-urwid')
+makedepends=('python-sphinx' 'python-sphinx-autorun')
+checkdepends=('python-freezegun' 'python-hypothesis' 'python-pytest'
+'python-pytest-runner')
+optdepends=('bash-completion: auto-complete in bash'
+ 'python-click-repl: REPL command'
+ 'zsh-completions: auto-complete in zsh')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('67cb498265fdb802ca0993618ae8e06918d0440d6f1092d155571d85a507f098e9e172e852b82f3854a965d72c57aba749ad964922f274be03181def4a527198')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ # remove interfering options to pytest
+ sed -e '/addopts/d' -i setup.cfg
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+ PYTHONPATH="$PYTHONPATH:${PWD}" make -C docs man
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ touch tests/__init__.py
+ # tests require timezone to be set to UTC
+ # https://github.com/pimutils/todoman/issues/404
+ TZ="UTC" pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ # docs
+ install -vDm 644 {AUTHORS,CHANGELOG,CODE_OF_CONDUCT,README}.rst \
+ -t "${pkgdir}/usr/share/doc/${pkgname}/"
+ # manpages
+ install -d "$pkgdir/usr/share/man/man1"
+ install -Dm644 docs/build/man/*.1 "$pkgdir/usr/share/man/man1/"
+ # license
+ # wrong name: https://github.com/pimutils/todoman/issues/319
+ install -vDm 644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ # sample config
+ install -vDm 644 "${pkgname}.conf.sample" \
+ -t "${pkgdir}/usr/share/doc/${pkgname}/examples/"
+ # completions
+ install -vDm 644 contrib/completion/bash/_todo \
+ "${pkgdir}/usr/share/bash-completion/completions/todo"
+ install -vDm 644 contrib/completion/zsh/_todo \
+ "${pkgdir}/usr/share/zsh/site-functions/_todo"
+}
More information about the arch-commits
mailing list