# Maintainer: Erich Eckner # Contributor: Hyacinthe Cartiaux # Contributor: Josh VanderLinden pkgname=python-sphinxcontrib-programoutput _pkgname=sphinxcontrib-programoutput pkgver=0.16 pkgrel=3 pkgdesc="Sphinx extension to include program output" arch=('any') url="https://bitbucket.org/birkenfeld/sphinx-contrib" license=('BSD') depends=( 'python>=3.9' 'python<3.10') makedepends=( 'python-setuptools') provides=('sphinxcontrib-programoutput') options=(!emptydirs) source=( "https://pypi.python.org/packages/source/s/${_pkgname}/${_pkgname}-${pkgver}.tar.gz" ) source=(https://pypi.python.org/packages/3a/70/9d31f5ecaeaddfc7857de38b3dcec099690829122c084c2cdfee8f90a967/${_pkgname}-${pkgver}.tar.gz) sha512sums=('6003b8ce43ed468b01f6bda02c6f58c0518b38c43a75f1ed0869dd8df2ee215310246b7feeba90f213547644c1bdb0164cf1f44f44879ac054dcbd6d6f48a69e') build() { cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py build } package() { cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py install --root="${pkgdir}/" --optimize=1 install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }