# Maintainer: Astro Benzene _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 }