aboutsummaryrefslogtreecommitdiffstats
path: root/community/rstcheck/APKBUILD
blob: afa51e09ff382fbf5cc849d4acf85abd71939fb7 (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
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=rstcheck
pkgver=3.3.1
pkgrel=5
pkgdesc="Checks syntax of reStructuredText and code blocks nested within it"
url="https://github.com/myint/rstcheck"
arch="noarch"
license="MIT"
depends="python3 py3-docutils"
makedepends="py3-setuptools"
checkdepends="bash"
# use github because the test suite isn't part of the pypi package:
source="$pkgname-$pkgver.tar.gz::https://github.com/myint/rstcheck/archive/v$pkgver.tar.gz
	01-python3-test-suite.patch
	02-Close-the-multiprocessing.pool-after-use.patch
	"

build() {
	python3 setup.py build
}

check() {
	python3 ./test_rstcheck.py
	bash ./test.bash
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="07431d6c4789e4c005c4bf4be66f627c390f57e56f25b4f3db8b392bc7b904ca93c3e26145ab344e9b78109d2054e5f36167ab40b1ab023f08c85d6ec12cafbc  rstcheck-3.3.1.tar.gz
e2a86661595debc58e5cf919277afbd6b50abcd97ea6d5383294b9b346a4344d837927cd678738d0f01f01d450c5a99f84732f09aa696e19e588a732d9a4c773  01-python3-test-suite.patch
4cdd8825fb2bb0e0522f57487b37cce9509ebd73a47257cece8044ffe78b32cfab9052c6506c031059ab2bcc02a4ac166c59df724cfdd55598e697ba03802cd5  02-Close-the-multiprocessing.pool-after-use.patch"