blob: 95615c6ca1b7d2430ae26ff4253495c1c3a90237 (
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
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
_pyname=drizzlepac
pkgname=python-${_pyname}-doc
pkgver=3.7.0.1
pkgrel=1
pkgdesc="Documentation for DrizzlePac"
arch=('any')
url="http://www.stsci.edu/scientific-community/software/drizzlepac.html"
license=('BSD-3-Clause')
makedepends=("python-${_pyname}=${pkgver}"
'graphviz'
'python-setuptools'
'python-numpydoc'
'python-sphinx_rtd_theme'
# 'python-astroquery'
# 'python-photutils'
# 'python-pandas'
# 'python-stsci_rtd_theme'
'python-sphinx-automodapi'
'python-tomli'
# 'python-ci_watson'
'texlive-latexextra') # latex.fmt: -latex; anyfontsize.sty: latexextra
# texlive-basic(mktexfmt)
# 'python-bokeh'
# 'python-scikit-image'
# 'python-pypdf2'
# 'python-astrocut'
source=("https://github.com/spacetelescope/${_pyname}/archive/${pkgver}.tar.gz"
# "https://raw.githubusercontent.com/spacetelescope/drizzlepac/master/doc/source/SkyCell14_14.png"
# "https://raw.githubusercontent.com/spacetelescope/drizzlepac/master/doc/source/SkyCell14_15.png"
# "https://raw.githubusercontent.com/spacetelescope/drizzlepac/master/doc/source/SkyCellCombo.png"
# "https://raw.githubusercontent.com/spacetelescope/drizzlepac/master/doc/source/ZoomSkyCellCombo.png"
'fix_catalog_generation_title_level.patch')
#source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
md5sums=('7e72d0d8dfee48f0542f1c117630c938'
'eb046975b52452d799021218eb414cfb')
prepare() {
cd ${srcdir}/${_pyname}-${pkgver}
# patch -Np1 -i "${srcdir}/fix_catalog_generation_title_level.patch"
# sed "/generate_custom_svm_param_file/s/generate_custom_svm_param_file/generate_custom_svm_mvm_param_file/" \
# -i doc/source/catalog_generation.rst
# mv ${_pyname} _${_pyname}
## ln -s ${srcdir}/*.png ${srcdir}/${_pyname}-${pkgver}/doc/source
}
build() {
cd ${srcdir}/${_pyname}-${pkgver}/doc
make html
}
package() {
cd ${srcdir}/${_pyname}-${pkgver}/doc/build
install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../LICENSE.txt
install -d -m755 "${pkgdir}/usr/share/doc/${pkgname%-doc}"
cp -a html "${pkgdir}/usr/share/doc/${pkgname%-doc}"
}
|