blob: 9a4a85b34ff1b13ea09dbc11986aabc3ad4925f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>
pkgname=todoman-git
_pkgname=todoman
pkgver=4.0.0.post15+gcaa5d86
pkgrel=1
pkgdesc="A simple CalDav-based todo manager."
arch=("any")
url="https://github.com/pimutils/todoman"
license=('ISC')
makedepends=(
git
)
depends=(
python-atomicwrites
python-click
python-click-log
python-dateutil
python-humanize
python-icalendar
python-parsedatetime
python-setuptools-scm
python-tabulate
python-urwid
python-xdg
)
optdepends=('python-click-repl: the repl command.'
'bash-completion: bash autocompletion.'
'zsh-completions: zsh autocompletion.')
checkdepends=('python-pytest' 'python-hypothesis' 'python-pytest-runner'
'python-freezegun' 'python-pytest-cov')
conflicts=("todoman")
provides=("todoman")
source=(git+https://github.com/pimutils/todoman.git)
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
python setup.py --version
}
build() {
cd "$srcdir/$_pkgname"
python setup.py build
}
check() {
cd "$srcdir/$_pkgname"
export PYTHONPATH="${PYTHONPATH%:}:${PWD}"
export TZ=UTC
py.test
}
package() {
cd "$srcdir/$_pkgname"
python setup.py install --root="$pkgdir" --optimize=1
install -Dm 644 config.py.sample \
"$pkgdir/usr/share/doc/todoman/examples/config.py"
install -Dm 755 bin/todo "$pkgdir/usr/bin/todo"
install -Dm 644 contrib/completion/bash/_todo \
"$pkgdir/usr/share/bash-completion/completions/todo"
install -Dm 644 contrib/completion/zsh/_todo \
"$pkgdir/usr/share/zsh/site-functions/_todo"
}
|