From 7a448cb8a56169cf7a03545586d3a8e1c76345ad Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Thu, 18 Jun 2020 03:11:38 +0000 Subject: [PATCH] added community/python-sphinx_rtd_theme --- community/python-sphinx_rtd_theme/PKGBUILD | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 community/python-sphinx_rtd_theme/PKGBUILD diff --git a/community/python-sphinx_rtd_theme/PKGBUILD b/community/python-sphinx_rtd_theme/PKGBUILD new file mode 100644 index 000000000..763cbfefc --- /dev/null +++ b/community/python-sphinx_rtd_theme/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Johannes Löthberg +# Maintainer: Daniel M. Capella +# Contributor: eolianoe +# Contributor: Romain Schmitz + +# ALARM: Kevin Mihelich +# - makedepend on python2 for node module builds + +pkgname=python-sphinx_rtd_theme +pkgver=0.5.0 +pkgrel=1 +pkgdesc='Read the Docs theme for Sphinx' +arch=('any') +url=https://github.com/readthedocs/sphinx_rtd_theme +license=('MIT') +depends=('python-setuptools' 'python-sphinx') +makedepends=('npm' 'python2') +source=("$url/archive/$pkgver/sphinx_rtd_theme-$pkgver.tar.gz") +sha512sums=('e5d3f653649f10bcbb953fa18fe79f2b8663da205cc6c6d4ee702789b86de19ac525065b214e3e419e0a34feda35e54b3abd5e82b2a5e657821675125dc9dfdc') + +build() { + cd sphinx_rtd_theme-$pkgver + python setup.py build +} + +package() { + cd sphinx_rtd_theme-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE +}