[arch-commits] Commit in todoman/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Thu Nov 11 12:13:00 UTC 2021
Date: Thursday, November 11, 2021 @ 12:13:00
Author: dvzrv
Revision: 1042021
archrelease: copy trunk to community-any
Added:
todoman/repos/community-any/PKGBUILD
(from rev 1042020, todoman/trunk/PKGBUILD)
Deleted:
todoman/repos/community-any/PKGBUILD
----------+
PKGBUILD | 131 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 65 insertions(+), 66 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-11 12:12:53 UTC (rev 1042020)
+++ PKGBUILD 2021-11-11 12:13:00 UTC (rev 1042021)
@@ -1,66 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-
-pkgname=todoman
-pkgver=4.0.0
-pkgrel=2
-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-tabulate' 'python-urwid')
-makedepends=('python-sphinx-autorun' 'python-sphinx-click' 'python-setuptools-scm')
-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=('53838682ef4145c4fea57bd7b63ff3322002df032719ab5f397408ac2a4ea72ab172148505fc86393177a3ac4801d0ae986736e98ccb9047313c7e32698529fd')
-b2sums=('752bbca2774c7ad6c089a68916a34ca718a644344365748b6ade6c031c4938873793270b6ed633d1477b14030c6ea739083ddaa60207127e3b7118d69ef9a16b')
-
-prepare() {
- cd "$pkgname-$pkgver"
- # remove interfering options to pytest
- sed -e '/addopts/d' -i setup.cfg
- sed -i 's/from validate/from configobj.validate/g' todoman/configuration.py
- sed -i 's/import validate/import configobj.validate as validate/' docs/source/conf.py
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build
- PYTHONPATH="$PYTHONPATH:${PWD}" make -C docs man
-}
-
-check() {
- cd "$pkgname-$pkgver"
- export PYTHONPATH="build:${PYTHONPATH}"
- # 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 --optimize=1 --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 "config.py.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"
-}
Copied: todoman/repos/community-any/PKGBUILD (from rev 1042020, todoman/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-11-11 12:13:00 UTC (rev 1042021)
@@ -0,0 +1,65 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=todoman
+pkgver=4.0.1
+pkgrel=1
+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-tabulate' 'python-urwid')
+makedepends=('python-sphinx-autorun' 'python-sphinx-click' 'python-sphinx_rtd_theme' 'python-setuptools-scm')
+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=('606be4553330741bb664c2261ba33f9feb68023c38c4e5278febadae3c9267d5bcc0b63966a41ac3d2ec38f44c16f9368ec502d2ce1a782a9108ca4a38d9e04c')
+b2sums=('029c09e5d29d9f3f9ffa6419f9506b9227bab1659dfec0287989ba6c2ce4043111cb82def2934f1d07fa51473725c7a8dfae6d87671ea1aaebba4e9099edcce8')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ # remove interfering options to pytest
+ sed -e '/addopts/d' -i setup.cfg
+ sed -i 's/from validate/from configobj.validate/g' todoman/configuration.py
+ sed -i 's/import validate/import configobj.validate as validate/' docs/source/conf.py
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+ PYTHONPATH="$PYTHONPATH:${PWD}" make -C docs man
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ # 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 --optimize=1 --root="${pkgdir}"
+ # docs
+ install -vDm 644 {AUTHORS,CHANGELOG,CODE_OF_CONDUCT,README}.rst \
+ -t "${pkgdir}/usr/share/doc/${pkgname}/"
+ # manpages
+ install -vDm 644 docs/build/man/*.1 -t "$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 "config.py.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