void-packages/srcpkgs/python-Pygments/template

35 lines
936 B
Bash

# Template file for 'python-Pygments'
pkgname=python-Pygments
version=2.3.1
revision=1
archs=noarch
wrksrc="Pygments-${version}"
build_style=python-module
pycompile_module="pygments"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Python2 syntax highlighter"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://pygments.org/"
license="BSD-2-Clause"
distfiles="${PYPI_SITE}/P/Pygments/Pygments-${version}.tar.gz"
checksum=5ffada19f6203563680669ee7f53b64dabbeb100eb51b61996085e99c03b284a
alternatives="pygments:pygmentize:/usr/bin/pygmentize2"
post_install() {
vlicense LICENSE
}
python3-Pygments_package() {
archs=noarch
depends="python3-setuptools"
pycompile_module="pygments"
short_desc="${short_desc/Python2/Python3}"
alternatives="pygments:pygmentize:/usr/bin/pygmentize3"
pkg_install() {
vmove usr/bin/pygmentize3
vmove usr/lib/python3*
vlicense LICENSE
}
}