[arch-commits] Commit in python-commonmark/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sun Aug 6 18:39:36 UTC 2017


    Date: Sunday, August 6, 2017 @ 18:39:35
  Author: anthraxx
Revision: 249074

upgpkg: python-commonmark 0.7.4-2 (addings docs)

Modified:
  python-commonmark/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-06 18:39:15 UTC (rev 249073)
+++ PKGBUILD	2017-08-06 18:39:35 UTC (rev 249074)
@@ -3,13 +3,13 @@
 pkgbase=python-commonmark
 pkgname=('python-commonmark' 'python2-commonmark')
 pkgver=0.7.4
-pkgrel=1
+pkgrel=2
 pkgdesc='Python parser for the CommonMark Markdown spec'
 url='https://pypi.python.org/pypi/CommonMark'
 arch=('any')
 license=('BSD')
-makedepends=('python-setuptools' 'python-docutils' 'python-future'
-             'python2-setuptools' 'python2-docutils' 'python2-future')
+makedepends=('python-setuptools' 'python-docutils' 'python-future' 'python-sphinx'
+             'python2-setuptools' 'python2-docutils' 'python2-future' 'python2-sphinx')
 checkdepends=('python-hypothesis' 'python2-hypothesis')
 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/rtfd/CommonMark-py/archive/${pkgver}.tar.gz)
 sha256sums=('fe9210e59299a291b0da87c3aecedc5ff50cb9976b0850d72a6eb5151a269478')
@@ -22,9 +22,11 @@
 build() {
   (cd CommonMark-py-${pkgver}
     python setup.py build
+    make -j1 -C docs man text SPHINXBUILD=sphinx-build
   )
   (cd CommonMark-py-${pkgver}-py2
     python2 setup.py build
+    make -j1 -C docs man text SPHINXBUILD=sphinx-build2
   )
 }
 
@@ -49,6 +51,8 @@
   python setup.py install --root="${pkgdir}" --skip-build -O1
   install -Dm 644 README.rst CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/_build/man/commonmark-py.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
 }
 
 package_python2-commonmark() {
@@ -58,6 +62,8 @@
   python2 setup.py install --root="${pkgdir}" --skip-build -O1
   install -Dm 644 README.rst CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/_build/man/commonmark-py.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
   mv "${pkgdir}/usr/bin/cmark"{,2}
 }
 



More information about the arch-commits mailing list