archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-tasklib / trunk / PKGBUILD
blob6bf6d5bb61c78e47b41dc8651df5451834162763
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
3 _pyname=tasklib
4 pkgname=python-${_pyname}
5 pkgver=2.5.1
6 pkgrel=2
7 pkgdesc='Python library for interacting with taskwarrior databases'
8 url='http://tasklib.readthedocs.org/en/latest/'
9 arch=('any')
10 license=('BSD')
11 depends=('python')
12 makedepends=('python-setuptools' 'python-sphinx')
13 source=("https://github.com/GothenburgBitFactory/tasklib/archive/$pkgver.tar.gz")
14 sha512sums=('b52a94e487eb90776a5edec63bfef9a4eaa5a87065be3a5386bd0d8b277b88fb35663ea5789e573a088e54fb9aa835c27d787fced4ed5198badff995dcc2e7e0')
15 b2sums=('7ca8fa519ccfb8f1fdfe06536f825f488766abcfd2e7c8c722b1dad8ecf51ea8846c93baac7207b607e50bb8285f9a0b88ba9116ca2285a1e012a053600ff8f5')
17 build() {
18   cd ${_pyname}-${pkgver}
19   python setup.py build
20   export PYTHONPATH=..
21   make -C docs text man
24 package() {
25   cd ${_pyname}-${pkgver}
26   python setup.py install --root="${pkgdir}" -O1 --skip-build
27   install -Dm 644 docs/_build/man/${_pyname}.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
28   install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
29   install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
30   install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
33 # vim: ts=2 sw=2 et: