python-docutils 0.21.2-1
This commit is contained in:
parent
a1f3309fb9
commit
2ed2e3f72a
19
PKGBUILD
19
PKGBUILD
@ -5,16 +5,23 @@
|
|||||||
|
|
||||||
# Maintainer: Future Linux Team <future_linux@163.com>
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
||||||
pkgname=python-docutils
|
pkgname=python-docutils
|
||||||
pkgver=0.20.1
|
pkgver=0.21.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX"
|
pkgdesc="Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://docutils.sourceforge.net"
|
url="http://docutils.sourceforge.net"
|
||||||
license=('custom')
|
license=('custom')
|
||||||
depends=('python')
|
depends=('python')
|
||||||
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
|
makedepends=('python-build' 'python-installer' 'python-flit-core')
|
||||||
source=(https://downloads.sourceforge.net/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz)
|
source=(https://files.pythonhosted.org/packages/source/d/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz)
|
||||||
sha256sums=(f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b)
|
sha256sums=(3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f)
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd ${pkgname#*-}-${pkgver}
|
||||||
|
|
||||||
|
# Remove include list https://github.com/pypa/wheel/issues/92
|
||||||
|
sed -i '/^include =/,/]/d' pyproject.toml
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname#*-}-${pkgver}
|
cd ${pkgname#*-}-${pkgver}
|
||||||
@ -26,8 +33,4 @@ package() {
|
|||||||
cd ${pkgname#*-}-${pkgver}
|
cd ${pkgname#*-}-${pkgver}
|
||||||
|
|
||||||
python3 -m installer --destdir=${pkgdir} dist/*.whl
|
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
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user