void-packages/srcpkgs/python3-Pygments/template
2021-05-05 10:50:09 -04:00

26 lines
776 B
Bash

# Template file for 'python3-Pygments'
pkgname=python3-Pygments
version=2.9.0
revision=1
wrksrc="Pygments-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
checkdepends="python3-pytest"
short_desc="Generic syntax highlighter written in Python"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="BSD-2-Clause"
homepage="https://pygments.org"
changelog="https://raw.githubusercontent.com/pygments/pygments/master/CHANGES"
distfiles="${PYPI_SITE}/P/Pygments/Pygments-${version}.tar.gz"
checksum=a18f47b506a429f6f4b9df81bb02beab9ca21d0a5fee38ed15aef65f0545519f
alternatives="pygments:pygmentize:/usr/bin/pygmentize3"
do_check() {
python3 -m pytest
}
post_install() {
vlicense LICENSE
mv ${DESTDIR}/usr/bin/pygmentize{,3}
}