void-packages/srcpkgs/python-sphinx_rtd_theme/template

39 lines
1.1 KiB
Bash

# Template file for 'python-sphinx_rtd_theme
pkgname=python-sphinx_rtd_theme
version=0.2.4
revision=1
noarch=yes
wrksrc="sphinx_rtd_theme-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="sphinx_rtd_theme"
short_desc="ReadTheDocs.org theme for Sphinx (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/snide/sphinx_rtd_theme/"
license="MIT"
distfiles="${PYPI_SITE}/s/sphinx_rtd_theme/sphinx_rtd_theme-${version}.tar.gz"
checksum=2df74b8ff6fae6965c527e97cca6c6c944886aae474b490e17f92adfbe843417
post_install() {
vlicense LICENSE
}
python3-sphinx_rtd_theme_package() {
noarch=yes
depends="python3"
pycompile_module="sphinx_rtd_theme"
replaces="python3.4-sphinx_rtd_theme>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-sphinx_rtd_theme_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-sphinx_rtd_theme>=${version}_${revision}"
}