commit d56df7701a5da0f6b1189f67f25f39400dc20705 Author: xhaa123 Date: Mon Apr 29 11:37:21 2024 +0800 python-sphinxcontrib-qthelp 1.0.7-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..eec522d --- /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-sphinxcontrib-qthelp +pkgver=1.0.7 +pkgrel=1 +pkgdesc="Sphinx extension which outputs QtHelp document" +arch=('x86_64') +url="https://github.com/sphinx-doc/sphinxcontrib-qthelp" +license=('BSD-2-Clause') +depends=('python') +makedepends=('python-build' 'python-flit-core' 'python-installer') +source=(https://github.com/sphinx-doc/sphinxcontrib-qthelp/archive/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(29d9256d53af5fcdedc1f71f0a0658d00deb62aa721ae371aa8d16da8ef454f9) + +build() { + cd ${pkgname#*-}-${pkgver} + + python3 -m build --wheel --skip-dependency-check --no-isolation +} + +package() { + cd ${pkgname#*-}-${pkgver} + + python3 -m installer --destdir=${pkgdir} dist/*.whl +}