27 lines
776 B
Bash
27 lines
776 B
Bash
# Template file for 'python3-Pygments'
|
|
pkgname=python3-Pygments
|
|
version=2.8.1
|
|
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=2656e1a6edcdabf4275f9a3640db59fd5de107d88e8663c5d4e9a0fa62f77f94
|
|
alternatives="pygments:pygmentize:/usr/bin/pygmentize3"
|
|
|
|
do_check() {
|
|
python3 -m pytest
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
mv ${DESTDIR}/usr/bin/pygmentize{,3}
|
|
}
|