Files
LFS-PKGBUILDs/dev-python/pygments-2.19.2.PKGBUILD

33 lines
753 B
Bash

pkgname=pygments
pkgver=2.19.2
pkgdesc="Python syntax highlighter"
arch=('any')
homepage="https://pygments.org/"
license=('BSD-2-Clause')
depends=('python')
makedepends=(
'python-build'
'python-hatchling'
'python-installer'
'python-setuptools'
'python-wheel'
)
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${sources[0]}")
md5sums=("79260d1c566a507953a81d24b1c51c72")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
python -m build --wheel --no-isolation
}
src_install() {
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
# vim:ft=sh syn=sh et sw=2: