[arch-commits] Commit in python-sphinx_rtd_theme (3 files)

Antonio Rojas arojas at archlinux.org
Sat May 9 19:09:13 UTC 2015


    Date: Saturday, May 9, 2015 @ 21:09:12
  Author: arojas
Revision: 133131

archrelease: copy trunk to community-any

Added:
  python-sphinx_rtd_theme/repos/
  python-sphinx_rtd_theme/repos/community-any/
  python-sphinx_rtd_theme/repos/community-any/PKGBUILD
    (from rev 133130, python-sphinx_rtd_theme/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: python-sphinx_rtd_theme/repos/community-any/PKGBUILD (from rev 133130, python-sphinx_rtd_theme/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD	                        (rev 0)
+++ repos/community-any/PKGBUILD	2015-05-09 19:09:12 UTC (rev 133131)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer:
+# 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)
+_pyname=sphinx_rtd_theme
+pkgver=0.1.6
+pkgrel=3
+arch=(any)
+pkgdesc="Python Sphinx Read The Docs Theme"
+url='https://github.com/snide/sphinx_rtd_theme'
+license=(MIT)
+makedepends=(python-setuptools python2-setuptools)
+source=("https://pypi.python.org/packages/source/s/${_pyname}/${_pyname}-${pkgver}.tar.gz")
+md5sums=('8df56a300c8c69f17e1ffbee194b2a26')
+
+build() {
+  cp -r $_pyname-$pkgver $_pyname-$pkgver-py2
+  
+  cd $_pyname-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/$_pyname-$pkgver-py2
+  python2 setup.py build
+}
+
+package_python-sphinx_rtd_theme() {
+  cd $_pyname-${pkgver}
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-sphinx_rtd_theme() {
+  cd $_pyname-${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