aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-sphinx-autobuild/APKBUILD
blob: ae638d1c6dc8eddcd9224a2007043dad597e6012 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-sphinx-autobuild
pkgver=0.7.1
pkgrel=0
pkgdesc="Watch a Sphinx directory and rebuild the documentation when a change is detected"
url="https://github.com/GaretJax/sphinx-autobuild"
arch="noarch"
license="BSD"
depends="py-argh py-livereload py-pathtools py-yaml py-sphinx py-tornado py-watchdog py-setuptools"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="sphinx-autobuild-$pkgver.tar.gz::https://github.com/GaretJax/sphinx-autobuild/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/sphinx-autobuild-$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"
	python2 setup.py build || return 1
}

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

sha512sums="586a44b77bb04c908e70e14d80336c4d3641f10e0a38db8cbf64e03c229818b18de4ec26b0894e0f45099d75443b1996b32afec0fc00631b5b671a26bc29e1f5  sphinx-autobuild-0.7.1.tar.gz"