summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-03-01 16:56:10 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-03-01 16:56:10 (GMT)
commitfa2d584e3f5444e0e6a198b04f4e9ecb7369d6ac (patch)
tree08f351dea048bca96a5e3ee869fdb7ce2f1b35fa /abs/core
parentb799d6d20301e8ef73c527e428035136c0dcb9bd (diff)
downloadlinhes_pkgbuild-fa2d584e3f5444e0e6a198b04f4e9ecb7369d6ac.zip
linhes_pkgbuild-fa2d584e3f5444e0e6a198b04f4e9ecb7369d6ac.tar.gz
linhes_pkgbuild-fa2d584e3f5444e0e6a198b04f4e9ecb7369d6ac.tar.bz2
python-sphinx_rtd_theme: dep of python-sphinx
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/python_modules/python-sphinx_rtd_theme/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
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 <johannes@kyriasis.com>
+# Contributor: eolianoe <eolianoe [at] gmail [DoT] com>
+# Contributor: Romain Schmitz <slopjong .at. slopjong .dot. de>
+
+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
+}
+