summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c8730a2c57fa552d18a14dde44f86a440cbf8c86 (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
# Maintainer: Astro Benzene <universebenzene at sina dot com>
_pyname=emcee
pkgname=python-${_pyname}-doc
pkgver=3.1.6
pkgrel=1
pkgdesc="Documentation for Python emcee"
arch=('any')
url="http://emcee.readthedocs.io"
license=('MIT')
makedepends=("python-${_pyname}=${pkgver}"
             'python-sphinx'
             'python-setuptools'
             'python-myst-nb'
             'python-sphinx-book-theme'
#            'python-sphinx_rtd_theme'
#            'jupyter-nbconvert'
#            'pandoc'
             'texlive-latexrecommended'
             'texlive-mathscience')  # pdflatex.fmt, infwarerr.sty; algorithmic.sty
#            'python-matplotlib'
#            'python-celerite')
source=("https://github.com/dfm/emcee/archive/v${pkgver}.tar.gz")
md5sums=('eb3c9e0a4e9c2451a44aa6ae2d501678')

build() {
    cd ${srcdir}/${_pyname}-${pkgver}/docs
    make html

    cd ${srcdir}/${_pyname}-${pkgver}/document
    make && make
}

package() {
    cd ${srcdir}/${_pyname}-${pkgver}/docs
    install -d -m755 "${pkgdir}/usr/share/doc/${pkgname%-doc}"
    cp -a _build/html "${pkgdir}/usr/share/doc/${pkgname%-doc}"
    cp -a _static "${pkgdir}/usr/share/doc/${pkgname%-doc}"

    cd ${srcdir}/${_pyname}-${pkgver}/document
    install -D -m644 -t "${pkgdir}/usr/share/doc/${pkgname%-doc}/document" ms.pdf
    cp -a plots "${pkgdir}/usr/share/doc/${pkgname%-doc}/document"

    install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../LICENSE
}