blob: cd9be6fe14e140c9668dbe8783347f187690da56 (
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
|
# Maintainer: Ben Wolsieffer <benwolsieffer@gmail.com>
_py_pkgname=sphinx-autobuild
pkgname=python-${_py_pkgname}
pkgver=0.7.1
pkgrel=5
pkgdesc="Watch a Sphinx directory and rebuild the documentation when a change is detected. Also includes a livereload enabled web server."
arch=('any')
url="https://github.com/GaretJax/sphinx-autobuild"
license=('MIT')
depends=(
'python-sphinx'
'python-watchdog'
'python-argh'
'python-pathtools'
'python-yaml'
'python-tornado'
'python-port-for'
'python-livereload'
)
checkdepends=(
'python-pytest'
'python-mock'
)
source=(
"https://files.pythonhosted.org/packages/source/${_py_pkgname::1}/${_py_pkgname}/${_py_pkgname}-${pkgver}.tar.gz"
"dependency-updates.patch::https://github.com/GaretJax/sphinx-autobuild/commit/08c4198a971d40abd6293bb54b3336f081b2bb6e.patch"
)
sha256sums=('66388f81884666e3821edbe05dd53a0cfb68093873d17320d0610de8db28c74e'
'896ef9038482a183bee7ae2a45315fae77edc81a70c3c196498edff1b4c8fc4b')
prepare() {
cd "${srcdir}/${_py_pkgname}-${pkgver}"
patch -p1 < ../dependency-updates.patch
}
build() {
cd "${srcdir}/${_py_pkgname}-${pkgver}"
python setup.py build
}
check() {
cd "${srcdir}/${_py_pkgname}-${pkgver}"
py.test
}
package() {
cd "${srcdir}/${_py_pkgname}-${pkgver}"
python setup.py install --skip-build --root="${pkgdir}" --optimize=1
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=4 sw=4 et:
|