# Contributor: Carlo Landmeter # Maintainer: Fabian Affolter pkgname=py3-sphinx _pkgname=${pkgname#py3-} pkgver=2.2.1 pkgrel=1 pkgdesc="Python Documentation Generator" url="http://sphinx.pocoo.org/" arch="noarch" license="BSD-2-Clause" depends="py3-docutils py3-jinja2 py3-pygments py3-six py3-sphinx_rtd_theme py3-alabaster<0.8 py3-babel py3-snowballstemmer py3-imagesize py3-requests py3-sphinxcontrib-websupport py3-setuptools py3-packaging py3-sphinxcontrib-applehelp py3-sphinxcontrib-devhelp py3-sphinxcontrib-jsmath py3-sphinxcontrib-htmlhelp py3-sphinxcontrib-serializinghtml py3-sphinxcontrib-qthelp py3-attrs make" checkdepends="py3-pytest py3-funcsigs py3-pluggy" options="!check" # py3-pluggy and some other packages needs to be moved to main first source="$_pkgname-$pkgver.tar.gz::https://github.com/sphinx-doc/sphinx/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { python3 setup.py build } check() { make PYTHON=python3 test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" # TODO: The binaries with the -3 postfix should be # considered deprecated and removed in a future release. local path; for path in "$pkgdir"/usr/bin/*; do mv "$path" "$path"-3 done cd "$pkgdir"/usr/bin local name; for name in *-3; do ln -s -- $name "$pkgdir"/usr/bin/${name%-3} done } sha512sums="d3f3f89ddf7d007ac271e6351223852918f028ba0ce39f06f4a75babeb4525cdc65c625162b2d1e732db448f77aeb9cae656eb484a7c9eab7ad6dd563b92fe52 sphinx-2.2.1.tar.gz"