# Contributor: Carlo Landmeter # Maintainer: Fabian Affolter pkgname=py-sphinx_rtd_theme _pkgname=sphinx_rtd_theme pkgver=0.4.3 pkgrel=0 pkgdesc="Sphinx theme for readthedocs.org" url="https://github.com/snide/sphinx_rtd_theme" arch="noarch" license="MIT" makedepends="python2-dev python3-dev py-setuptools" checkdepends="pytest" options="!check" # readthedocs_ext is missing subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" source="$_pkgname-$pkgver.tar.gz::https://github.com/snide/$_pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build python3 setup.py build } check() { cd "$builddir" py.test } package() { mkdir -p "$pkgdir" } _py2() { replaces="$pkgname" _py python2 } _py3() { _py python3 } _py() { local python="$1" pkgdesc="$pkgdesc (for $python)" depends="$depends $python" install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } sha512sums="6e5d4d0c44ea8acdf382dd589a194be2777e4c4f66f27705eb32d0507cf71b9d289df860bc3d9845242629cd92d62154040f9063f1c05ff6f329e210e14a6a9a sphinx_rtd_theme-0.4.3.tar.gz"