# Moved from CCR - PKGBUILD by Renan Biegelmeyer (RenanBS) pkgname=python2-sphinx pkgver=1.1.3 pkgrel=1 pkgdesc="Python documentation generator" arch=('any') url="http://sphinx.pocoo.org/" license=('GPL') depends=('setuptools' 'python-pygments' 'docutils' 'python-jinja') optdepends=('texlive-latexextra: for generation of PDF documentation' 'texlive-latex3: for generation of PDF documentation') replaces=('python-sphinx') provides=('python-sphinx') conflicts=('python-sphinx') source=(http://pypi.python.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz) md5sums=('8f55a6d4f87fc6d528120c5d1f983e98') build() { cd "$srcdir/Sphinx-$pkgver" # python2 fix sed -i 's_#! /usr/bin/env python_#! /usr/bin/env python2_' sphinx/pycode/pgen2/token.py python2 setup.py install --root="$pkgdir" -O1 }