pkgname: python-pygments pkgver: '2.20.0' pkgrel: '1' pkgdesc: Python 3 syntax highlighter url: 'https://pygments.org' arch: x86_64 license: - BSD-2-Clause depends: [] makedepends: - python - python-build - python-installer - python-hatchling - python-pathspec - python-pluggy - python-packaging - python-trove-classifiers source: - 'https://pypi.org/packages/source/p/pygments/pygments-${pkgver}.tar.gz' sha256sums: - 6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f build: | cd pygments-${pkgver} # Wymuszenie widoczności pakietów systemowych export PYTHONPATH="/usr/lib/python3.14/site-packages:${PYTHONPATH}" # Bezpośrednie wywołanie backendu Hatchling do zbudowania paczki wheel w dist/ mkdir -p dist python3 -c "from hatchling.build import build_wheel; build_wheel('dist')" # Instalacja zbudowanego pliku wheel do PKGDIR python3 -m installer --destdir="${PKGDIR}" dist/*.whl # Czyszczenie zbytecznych katalogów oraz testów find "${PKGDIR}" -type d \( -name vendor -o -name tests \) -exec rm -rf {} + install -Dm 644 LICENSE "${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE" package: | true update: |- lynx -read_timeout=20 -dump -listonly -nonumbers \ https://pypi.org/project/Pygments/|grep Pygments-|tail -1|cut -d "-" -f2|sed s@.tar.gz@@