blob: cf42d1734375d10adae460ca27996ae8bd414bd8 (
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
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
_pyname=stsci.image
pkgname=python-${_pyname}-doc
pkgver=2.3.3
pkgrel=1
pkgdesc="Documentation for STScI Image"
arch=('i686' 'x86_64')
url="https://github.com/spacetelescope/stsci.image"
license=('BSD')
makedepends=("python2-${_pyname}=${pkgver}" 'python2-numpydoc' 'python2-stsci.sphinxext')
source=("https://github.com/spacetelescope/${_pyname}/archive/${pkgver}.tar.gz"
'fix_new_sphinx.patch')
md5sums=('3067df5c19b14573b17c080931acc93c'
'561121bb3958143ce70f2f8ba1971747')
prepare() {
cd ${srcdir}/${_pyname}-${pkgver}
patch -Np1 -i "${srcdir}/fix_new_sphinx.patch"
}
build() {
cd ${srcdir}/${_pyname}-${pkgver}/docs
make SPHINXBUILD=sphinx-build2 html
}
package() {
cd ${srcdir}/${_pyname}-${pkgver}/docs/build
install -d -m755 "${pkgdir}/usr/share/doc/${pkgname%-doc}"
cp -a html "${pkgdir}/usr/share/doc/${pkgname%-doc}"
}
|