From 2ed2e3f72a513b616b359f72eade6a4724d60ec4 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Fri, 1 Nov 2024 19:42:19 +0800 Subject: [PATCH] python-docutils 0.21.2-1 --- PKGBUILD | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index b053fbd..b9b657c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,16 +5,23 @@ # Maintainer: Future Linux Team pkgname=python-docutils -pkgver=0.20.1 +pkgver=0.21.2 pkgrel=1 pkgdesc="Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX" arch=('x86_64') url="http://docutils.sourceforge.net" license=('custom') depends=('python') -makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') -source=(https://downloads.sourceforge.net/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz) -sha256sums=(f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b) +makedepends=('python-build' 'python-installer' 'python-flit-core') +source=(https://files.pythonhosted.org/packages/source/d/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f) + +prepare() { + cd ${pkgname#*-}-${pkgver} + + # Remove include list https://github.com/pypa/wheel/issues/92 + sed -i '/^include =/,/]/d' pyproject.toml +} build() { cd ${pkgname#*-}-${pkgver} @@ -26,8 +33,4 @@ package() { cd ${pkgname#*-}-${pkgver} python3 -m installer --destdir=${pkgdir} dist/*.whl - - for f in ${pkgdir}/usr/bin/*.py; do - ln -s $(basename ${f}) ${pkgdir}/usr/bin/$(basename ${f} .py) - done }