python-sphinx/PKGBUILD

40 lines
1.2 KiB
Bash
Raw Permalink Normal View History

2024-04-29 11:42:04 +08:00
# 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 <future_linux@163.com>
pkgname=python-sphinx
2024-11-03 13:06:50 +08:00
pkgver=8.1.3
2024-04-29 11:42:04 +08:00
pkgrel=1
pkgdesc="Python documentation generator"
arch=('x86_64')
url="http://www.sphinx-doc.org/"
license=('BSD')
depends=('python-alabaster'
2024-11-03 13:06:50 +08:00
'python-babel'
'python-docutils'
'python-imagesize'
'python-jinja2'
'python-packaging'
'python-pygments'
'python-requests'
'python-snowballstemmer'
'python-sphinxcontrib-'{{apple,dev,html}help,jsmath,qthelp,serializinghtml})
2024-04-29 11:42:04 +08:00
makedepends=('python-build' 'python-flit-core' 'python-installer')
source=(https://github.com/sphinx-doc/sphinx/archive/v${pkgver}/${pkgname#*-}-${pkgver}.tar.gz)
2024-11-03 13:06:50 +08:00
sha256sums=(0fcc28999fe8e4fcc49a4ab01e3e987f6fbb3af32995db74e6fc8f8d01dcaaca)
2024-04-29 11:42:04 +08:00
build() {
2024-11-03 13:06:50 +08:00
cd ${pkgname#*-}-${pkgver}
2024-04-29 11:42:04 +08:00
2024-11-03 13:06:50 +08:00
python3 -m build --wheel --skip-dependency-check --no-isolation
2024-04-29 11:42:04 +08:00
}
package() {
2024-11-03 13:06:50 +08:00
cd ${pkgname#*-}-${pkgver}
2024-04-29 11:42:04 +08:00
2024-11-03 13:06:50 +08:00
python3 -m installer --destdir=${pkgdir} dist/*.whl
2024-04-29 11:42:04 +08:00
}