# This is an example PKGBUILD file. Use this as a start to creating your own, # and remove these comments. For more information, see 'man PKGBUILD'. # NOTE: Please fill out the license field for your package! If it is unknown, # then please put 'unknown'. # Maintainer: Future Linux Team pkgname=python-sphinx_rtd_theme pkgver=2.0.0 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=(40446e6789dd34deb4e9814e379bae0aa74057b6fb43de4b343a48c84fc0f8db) build() { cd ${pkgname#*-}-${pkgver} SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} python3 -m build --wheel --no-isolation } package() { cd ${pkgname#*-}-${pkgver} python3 -m installer --destdir=${pkgdir} dist/*.whl }