From fa2d584e3f5444e0e6a198b04f4e9ecb7369d6ac Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 1 Mar 2018 16:56:10 +0000 Subject: python-sphinx_rtd_theme: dep of python-sphinx --- .../python-sphinx_rtd_theme/PKGBUILD | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 abs/core/python_modules/python-sphinx_rtd_theme/PKGBUILD diff --git a/abs/core/python_modules/python-sphinx_rtd_theme/PKGBUILD b/abs/core/python_modules/python-sphinx_rtd_theme/PKGBUILD new file mode 100644 index 0000000..a446326 --- /dev/null +++ b/abs/core/python_modules/python-sphinx_rtd_theme/PKGBUILD @@ -0,0 +1,45 @@ +# $Id$ +# Maintainer: Johannes Löthberg +# Contributor: eolianoe +# Contributor: Romain Schmitz + +pkgbase=python-sphinx_rtd_theme +pkgname=('python-sphinx_rtd_theme' 'python2-sphinx_rtd_theme') +pkgver=0.2.4 +pkgrel=1 + +pkgdesc="Python Sphinx Read The Docs Theme" +url='https://github.com/rtfd/sphinx_rtd_theme/' +arch=('any') +license=('MIT') + +makedepends=('python-setuptools' 'python2-setuptools') + +source=("https://pypi.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-$pkgver.tar.gz") + +sha256sums=('2df74b8ff6fae6965c527e97cca6c6c944886aae474b490e17f92adfbe843417') + +build() { + cp -r sphinx_rtd_theme-$pkgver sphinx_rtd_theme-$pkgver-py2 + + cd sphinx_rtd_theme-$pkgver + python setup.py build + + cd "$srcdir"/sphinx_rtd_theme-$pkgver-py2 + python2 setup.py build +} + +package_python-sphinx_rtd_theme() { + cd sphinx_rtd_theme-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-sphinx_rtd_theme() { + cd sphinx_rtd_theme-${pkgver}-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + -- cgit v0.12