# Maintainer: Astro Benzene _pyname=crds pkgname=python-${_pyname}-doc pkgver=11.17.14 pkgrel=1 pkgdesc="Documentation for STScI CRDS" arch=('any') url="https://hst-crds.stsci.edu/static/users_guide/index.html" license=('BSD') makedepends=("python-${_pyname}=${pkgver}" 'python-setuptools' 'python-sphinx-automodapi' 'python-sphinx_rtd_theme' 'python-sphinx-tabs') source=("https://github.com/spacetelescope/${_pyname}/archive/${pkgver}.tar.gz") md5sums=('0cc96aabeb45e6c367ea3f982fa578b8') build() { cd ${srcdir}/${_pyname}-${pkgver}/documentation/crds_users_guide make html } package() { cd ${srcdir}/${_pyname}-${pkgver}/documentation/crds_users_guide/build install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../../LICENSE install -d -m755 "${pkgdir}/usr/share/doc/${pkgname%-doc}" cp -a html "${pkgdir}/usr/share/doc/${pkgname%-doc}" }