[arch-commits] Commit in python-sphinx_rtd_theme/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Dec 24 17:48:25 UTC 2016
Date: Saturday, December 24, 2016 @ 17:48:24
Author: felixonmars
Revision: 201678
archrelease: copy trunk to community-staging-any
Added:
python-sphinx_rtd_theme/repos/community-staging-any/
python-sphinx_rtd_theme/repos/community-staging-any/PKGBUILD
(from rev 201677, python-sphinx_rtd_theme/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-sphinx_rtd_theme/repos/community-staging-any/PKGBUILD (from rev 201677, python-sphinx_rtd_theme/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-24 17:48:24 UTC (rev 201678)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Johannes Löthberg <johannes at 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.1.9
+pkgrel=2
+
+pkgdesc="Python Sphinx Read The Docs Theme"
+url='https://github.com/snide/sphinx_rtd_theme'
+arch=('any')
+license=('MIT')
+
+makedepends=('python-setuptools' 'python2-setuptools')
+
+source=("https://pypi.python.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-$pkgver.tar.gz")
+
+md5sums=('86a25c8d47147c872e42dc84cc66f97b')
+
+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
+}
+
More information about the arch-commits
mailing list