# Contributor: Carlo Landmeter # Maintainer: Fabian Affolter pkgname=py-sphinx_rtd_theme _pkgname=sphinx_rtd_theme pkgver=0.1.9 pkgrel=2 pkgdesc="Sphinx theme for readthedocs.org" url="https://github.com/snide/sphinx_rtd_theme" arch="noarch" license="MIT" depends="" makedepends="python2-dev python3-dev py-setuptools" 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 || return 1 python3 setup.py build || return 1 } 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" } md5sums="f1745463231113bb2677ad34f0a20b3a sphinx_rtd_theme-0.1.9.tar.gz" sha256sums="46fd802c696b78e2681b21084c0d96c36e12b118c4c0cdf94f4a0702138f82a5 sphinx_rtd_theme-0.1.9.tar.gz" sha512sums="2ac313c8cf276bb8fc8c92cb3f39c1e216f8e0072a11a26af4fb6a37132e45b1c472c1f9625f171a411b0fcb909cc695b0af5f3def53ffa0ec3f568df7b0b197 sphinx_rtd_theme-0.1.9.tar.gz"