python-pygments 2.18.0-1
This commit is contained in:
parent
364ed8079b
commit
d548d6509a
30
PKGBUILD
30
PKGBUILD
@ -5,25 +5,39 @@
|
|||||||
|
|
||||||
# Maintainer: Future Linux Team <future_linux@163.com>
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
||||||
pkgname=python-pygments
|
pkgname=python-pygments
|
||||||
pkgver=2.17.2
|
pkgver=2.18.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Python syntax highlighter"
|
pkgdesc="Python syntax highlighter"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://pygments.org/"
|
url="https://pygments.org/"
|
||||||
license=('BSD')
|
license=('BSD-2-Clause')
|
||||||
depends=('python-hatchling')
|
depends=('python-hatchling')
|
||||||
makedepends=('python-build' 'python-installer' 'python-wheel')
|
makedepends=(
|
||||||
|
'python-setuptools'
|
||||||
|
'python-build'
|
||||||
|
'python-installer'
|
||||||
|
'python-wheel'
|
||||||
|
'python-sphinx'
|
||||||
|
'python-wcag-contrast-ratio'
|
||||||
|
)
|
||||||
source=(https://files.pythonhosted.org/packages/source/P/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz)
|
source=(https://files.pythonhosted.org/packages/source/P/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz)
|
||||||
sha256sums=(da46cec9fd2de5be3a8a784f434e4c4ab670b4ff54d605c4c2717e9d49c4c367)
|
sha256sums=(786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname#*-}-${pkgver}
|
cd ${pkgname#*-}-${pkgver}
|
||||||
|
|
||||||
python3 -m build --wheel --no-isolation
|
python3 -m build --wheel --no-isolation
|
||||||
|
make -C doc html
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd ${pkgname#*-}-${pkgver}
|
cd ${pkgname#*-}-${pkgver}
|
||||||
|
|
||||||
python3 -m installer --destdir=${pkgdir} dist/*.whl
|
python3 -m installer --destdir=${pkgdir} dist/*.whl
|
||||||
|
|
||||||
|
mkdir -pv ${pkgdir}/usr/share/doc
|
||||||
|
cp -rT doc/_build/html ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
|
||||||
|
install -Dm644 doc/pygmentize.1 -t ${pkgdir}/usr/share/man/man1
|
||||||
|
install -Dm644 external/pygments.bashcomp \
|
||||||
|
${pkgdir}/usr/share/bash-completion/completions/pygmentize
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user