summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3de960fc8c17475bdaf5bb6e3458ccf7aa73e53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# $Id$
# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Contributor: Fabio Volpe <volpefabio@gmail.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' '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
}