* update python-docutils to 1:0.21.2-1

This commit is contained in:
Alexander Baldeck 2024-05-07 22:05:41 +02:00
parent c158289a98
commit bf53302c8f

View File

@ -7,8 +7,8 @@
pkgname=python-docutils
_name=${pkgname#python-}
pkgver=0.20.1
pkgrel=2
pkgver=0.21.2
pkgrel=1
epoch=1
pkgdesc='Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX'
arch=(any)
@ -17,17 +17,23 @@ license=('custom')
depends=('python')
makedepends=(
'python-build'
'python-flit-core'
'python-installer'
'python-setuptools'
'python-wheel'
)
checkdepends=('python-pillow')
optdepends=(
'python-myst-parser: to parse input in "Markdown" (CommonMark) format'
'python-pillow: for some image manipulation operations'
'python-pygments: for syntax highlighting of code directives and roles'
)
source=("https://downloads.sourceforge.net/$_name/$_name-$pkgver.tar.gz")
b2sums=('73fb8302599ffe57b0840c898b0b2e3ccd39ff9ea6eec2b5d345d02c950e1a8357bd821e62733b0484e82bc30e71d30fab381390b0edaef4375b02bcd9eeeb40')
b2sums=('727c2f97fc5835a0ffa62e38ea85af366cd89ad1eaec0b8af8b1f3b12e6cddfddb65161ba34f9109952d37ba2cf8985f3c3b6905ebb2ac1c9a984cce3fb4d170')
prepare() {
cd "$_name"-$pkgver
# Remove include list https://github.com/pypa/wheel/issues/92
sed -i '/^include =/,/]/d' pyproject.toml
}
build() {
cd "$_name"-$pkgver
@ -44,10 +50,6 @@ check() {
package() {
cd "$_name"-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
# symlink without .py
for f in "$pkgdir"/usr/bin/*.py; do
ln -s "$(basename "$f")" "$pkgdir/usr/bin/$(basename "$f" .py)"
done
# symlink license file
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")