blob: fb05bc6d82be3531c94e22fa95c27f18dc7dc2af (
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
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
_pyname=healpy
pkgname=python-${_pyname}-doc
pkgver=1.18.1
pkgrel=1
pkgdesc="Documentation for Python iminuit module"
arch=('any')
url="http://healpy.readthedocs.io"
license=('GPL-2.0-only')
makedepends=("python-${_pyname}=${pkgver}"
'python-numpydoc'
# 'python-pillow'
'python-nbsphinx>=0.8.6'
'pandoc')
# 'wget'
source=("https://github.com/healpy/healpy/archive/${pkgver}.tar.gz"
'fix_doc_warning.patch')
md5sums=('d004ffe9e18a648d625265395cc793d9'
'564da1e5f36d3f48543086a233db6ab0')
prepare() {
cd ${srcdir}/${_pyname}-${pkgver}
patch -Np1 -i "${srcdir}/fix_doc_warning.patch"
sed -e "/^extension/a nbsphinx_allow_errors = True" -i doc/conf.py
# sed -e "/^extensions/s/nbsphinx\"\]/nbsphinx\",\ \'IPython\.sphinxext\.ipython_console_highlighting\'\]/" \
# -e "/^extension/a nbsphinx_allow_errors = True" -i doc/conf.py
}
build() {
cd ${srcdir}/${_pyname}-${pkgver}/doc
make html
}
package() {
cd ${srcdir}/${_pyname}-${pkgver}/doc/.build
install -d -m755 "${pkgdir}/usr/share/doc/${pkgname%-doc}"
cp -a html "${pkgdir}/usr/share/doc/${pkgname%-doc}"
}
|