# Maintainer: Astro Benzene _pyname=stsci.imagestats pkgname=python-${_pyname}-doc pkgver=1.6.3 pkgrel=1 pkgdesc="Documentation for STScI Imagestats" arch=('i686' 'x86_64') url="https://stsciimagestats.readthedocs.io" license=('BSD') makedepends=("python-${_pyname}=${pkgver}" 'python-numpydoc' 'python-sphinx_rtd_theme' 'python-stsci_rtd_theme') source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") md5sums=('dce4aa0c76f9e00184e0f8e40ba73954') build() { cd ${srcdir}/${_pyname}-${pkgver}/docs make 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}" }