summaryrefslogtreecommitdiff
path: root/main/py3-sphinx_rtd_theme/APKBUILD
blob: c378a02652c7e78a0de7eaf823307d4789a376d8 (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
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-sphinx_rtd_theme
_pkgname=sphinx_rtd_theme
pkgver=1.1.0
pkgrel=0
pkgdesc="Sphinx theme for readthedocs.org"
url="https://github.com/readthedocs/sphinx_rtd_theme"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
options="!check" # readthedocs_ext is missing
source="$_pkgname-$pkgver.tar.gz::https://github.com/readthedocs/sphinx_rtd_theme/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-sphinx_rtd_theme" # Backwards compatibility
provides="py-sphinx_rtd_theme=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

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

sha512sums="
d50d66740ce363772d6c7e00ea6d9711d7d67f5fca7ccf20ce5d466a00bb2ae96bbde78ad3da559c7ec54256ff0ef0704f914e2c52b9f6e507e57e3fd4c84c58  sphinx_rtd_theme-1.1.0.tar.gz
"