aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-sphinx/APKBUILD
blob: 5e91aebe1b03a4205bcca04d386194d20d80b426 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=py-sphinx
pkgver=1.3.1
pkgrel=1
pkgdesc="Python Documentation Generator"
url="http://sphinx.pocoo.org/"
arch="noarch"
license="BSD"
depends="python py-docutils py-jinja2 py-pygments py-setuptools make py-six
	py-sphinx_rtd_theme py-alabaster py-babel py-snowballstemmer"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="sphinx-$pkgver.tar.gz::https://github.com/sphinx-doc/sphinx/archive/$pkgver.tar.gz"

_builddir="$srcdir"/sphinx-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
        cd "$_builddir"
        python setup.py build || return 1
}

package() {
        cd "$_builddir"
        python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="e3710992529e43160c6a24bc3caea50d  sphinx-1.3.1.tar.gz"
sha256sums="c334277227317aeb6f9516a74a5086565ac3743a018b63d3acf0645b437a3a2d  sphinx-1.3.1.tar.gz"
sha512sums="369e92fbdf2db2510167ae11eb1a1556a2ea5df1df984e85d52ff6e3fff616fbbe1706cec26ac0fc405240bfa4eedd4c9ae8f7b76316dfafb6d5f836ef9ea773  sphinx-1.3.1.tar.gz"