pkgname=python-sphinx_rtd_theme pkgver=3.0.2 pkgrel=1 pkgdesc="Read the Docs theme for Sphinx" arch=('x86_64') url="https://github.com/readthedocs/sphinx_rtd_theme" license=('MIT') depends=('python' 'python-sphinx' 'python-sphinxcontrib-jquery') makedepends=('python-setuptools-scm' 'python-build' 'python-installer' 'python-wheel') source=(https://github.com/readthedocs/sphinx_rtd_theme/archive/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) sha256sums=(6d8e0435e525afe04cb3a10e9429cff37febef612a376576b69b63178f289aba) build() { cd ${pkgname#*-}-${pkgver} SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} python3 -m build --wheel --no-isolation } package() { cd ${pkgname#*-}-${pkgver} python3 -m installer -d ${pkgdir} dist/*.whl }