[arch-commits] Commit in (todoman todoman/repos todoman/trunk todoman/trunk/PKGBUILD)
David Runge
dvzrv at archlinux.org
Sat Aug 4 16:31:24 UTC 2018
Date: Saturday, August 4, 2018 @ 16:31:23
Author: dvzrv
Revision: 368017
Adding todoman from AUR.
Added:
todoman/
todoman/repos/
todoman/trunk/
todoman/trunk/PKGBUILD
----------+
PKGBUILD | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
Added: todoman/trunk/PKGBUILD
===================================================================
--- todoman/trunk/PKGBUILD (rev 0)
+++ todoman/trunk/PKGBUILD 2018-08-04 16:31:23 UTC (rev 368017)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: David Runge <dave at sleepmap.de>
+pkgname=todoman
+pkgver=3.4.0
+pkgrel=3
+pkgdesc="A simple, standards-based, cli todo (aka: task) manager"
+arch=('any')
+url="https://github.com/pimutils/todoman/blob/master/setup.py"
+license=('GPL')
+depends=('python-atomicwrites' 'python-click-log' 'python-configobj'
+'python-dateutil' 'python-humanize' 'python-icalendar' 'python-parsedatetime'
+'python-xdg' 'python-setuptools' 'python-tabulate' 'python-urwid')
+makedepends=()
+checkdepends=('python-freezegun' 'python-hypothesis' '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")
+md5sums=('b3b8a70275aa4ba6617169eddd84ec08')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ # remove interfering options to pytest
+ sed -e '/addopts/d' -i setup.cfg
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="${PYTHONPATH}:${PWD}"
+ #export timezone, so tests pick them up correctly
+ export TZ=UTC
+ py.test
+}
+
+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}/"
+ # license
+ 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"
+}
Property changes on: todoman/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list