aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-sphinx-autobuild/APKBUILD
blob: 9558054138778ce321cb201357fb97a25df5dfb1 (plain) (blame)
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
42
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-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"
replaces="py-sphinx-autobuild" #for backwards compatibility
provides="py-sphinx-autobuild=$pkgver-r$pkgrel" #for backwards compatibility
depends="py3-argh py3-livereload py3-pathtools py3-port-for py3-sphinx
	py3-tornado py3-watchdog py3-yaml"
depends_dev=""
makedepends="py3-setuptools"
install=""
subpackages=""
source="sphinx-autobuild-$pkgver.tar.gz::https://github.com/GaretJax/sphinx-autobuild/archive/v$pkgver.tar.gz
	fix-requires.patch"
_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"
	python3 setup.py build || return 1
}

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

sha512sums="6ecd4cccfcf1f6ecd15ffe39ad166436bc628e9ffb215b96b979cf10a56352640aefb22a858ab05e1fa9153c684af162bf89813331e1c2b12450a0cf2fcd3646  sphinx-autobuild-0.7.1.tar.gz
a5ce0b1c725a1844aa5e62a8f9e5157f34c2a36b08a178cbdeeeedf780494e1f0934bdd9ef1bc1d96893d36879c7f513b14d8789f8cb133949a832d6f11ee2b9  fix-requires.patch"