Christoph Reiter e8f4f9baa3 more CPEs
2024-03-26 09:46:25 +01:00

41 lines
1.1 KiB
Bash

# Maintainer: João Guerra <joca.bt@gmail.com>
pkgbase="python-pygments"
pkgname=("python-pygments")
pkgver=2.17.2
pkgrel=1
pkgdesc="A syntax highlighting engine written in Python"
arch=("i686" "x86_64")
url="https://pygments.org/"
msys2_repository_url="https://github.com/pygments/pygments"
msys2_references=(
"pypi:Pygments"
"cpe: cpe:/a:pygments:pygments"
)
license=('spdx:BSD-2-Clause')
depends=("python")
makedepends=(
"python-hatchling"
"python-build"
"python-installer"
)
provides=("python3-pygments")
conflicts=("python3-pygments")
replaces=("python3-pygments")
source=("https://pypi.python.org/packages/source/p/pygments/pygments-${pkgver}.tar.gz")
sha256sums=('da46cec9fd2de5be3a8a784f434e4c4ab670b4ff54d605c4c2717e9d49c4c367')
build() {
cd "pygments-${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package () {
cd "pygments-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 external/pygments.bashcomp "${pkgdir}/usr/share/bash-completion/completions/pygmentize"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}