From 94c2f53232aa02075462e8b13e5c9186ffa03b8e Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sat, 2 Nov 2024 22:41:29 +0800 Subject: [PATCH] python-sphinx_rtd_theme 2.0.0-1 --- PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f0d0b41 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# 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 +}