Skip to content
Snippets Groups Projects
Commit a5a13313 authored by Levente Polyak's avatar Levente Polyak :rocket:
Browse files

upgpkg: 0.7.5-1

parent 3d4498a3
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,8 @@
pkgbase=python-commonmark
pkgname=('python-commonmark' 'python2-commonmark')
pkgver=0.7.4
pkgrel=3
pkgver=0.7.5
pkgrel=1
pkgdesc='Python parser for the CommonMark Markdown spec'
url='https://pypi.python.org/pypi/CommonMark'
arch=('any')
......@@ -11,9 +11,10 @@ license=('BSD')
makedepends=('python-setuptools' 'python-docutils' 'python-future' 'python-sphinx'
'python2-setuptools' 'python2-docutils' 'python2-future' 'python2-sphinx')
checkdepends=('python-hypothesis' 'python2-hypothesis')
options=('!makeflags')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/rtfd/CommonMark-py/archive/${pkgver}.tar.gz)
sha256sums=('fe9210e59299a291b0da87c3aecedc5ff50cb9976b0850d72a6eb5151a269478')
sha512sums=('1973bad380197c6e42215077505c91f4a5d485653635683f5b192c806b4366fedb1c67285e716b9632fb3ebd0e1e2e587c5247422c82a936f84ed81d56e342ca')
sha256sums=('f483150b7b1dde5f7956e47d2345913b453c4390ff2279817520ae94e25c8eee')
sha512sums=('91c9d0e5770430c12d155e6d4ca5a7dcde3f70e24f0ff362e54436f6a218428f1db7a4177ed7cd152c31f6d1a9a25db51f1b248727d36720fc16635d6dd4edd2')
prepare() {
cp -r CommonMark-py-${pkgver}{,-py2}
......@@ -22,11 +23,11 @@ prepare() {
build() {
(cd CommonMark-py-${pkgver}
python setup.py build
make -j1 -C docs man text SPHINXBUILD=sphinx-build
make -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
make -C docs man text SPHINXBUILD=sphinx-build2
)
}
......@@ -48,7 +49,7 @@ package_python-commonmark() {
depends=('python-docutils' 'python-future')
cd CommonMark-py-${pkgver}
python setup.py install --root="${pkgdir}" --skip-build -O1
python setup.py install --root="${pkgdir}" -O1 --skip-build
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}"
......@@ -60,7 +61,7 @@ package_python2-commonmark() {
depends=('python2-docutils' 'python2-future')
cd CommonMark-py-${pkgver}-py2
python2 setup.py install --root="${pkgdir}" --skip-build -O1
python2 setup.py install --root="${pkgdir}" -O1 --skip-build
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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment