core/python-sphinx/PKGBUILD
2011-04-24 16:58:37 +00:00

25 lines
775 B
Bash

# Moved from CCR - PKGBUILD by Renan Biegelmeyer (RenanBS) <renan.biegel[at]gmail[.dot]com>
pkgname=python-sphinx
pkgver=1.0.7
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')
source=(http://pypi.python.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz)
md5sums=('42c722d48e52d4888193965dd473adb5')
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
}