aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-sphinx-theme-readable/APKBUILD
blob: d804951c883a3ef3e804d7ccda2e742ed8d9577b (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: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-sphinx-theme-readable
_pkgname=sphinx-readable-theme
pkgver=1.3.0
pkgrel=0
pkgdesc="The Readable Sphinx theme"
url="https://github.com/ignacysokolowski/sphinx-readable-theme"
arch="noarch"
license="BSD"
depends="python py-sphinx"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$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="57e396552315d3c8034874c9eaef160f  sphinx-readable-theme-1.3.0.tar.gz"
sha256sums="f5fe65a2e112cb956b366df41e0fc894ff6b6f0e4a4814fcbff692566db47fc0  sphinx-readable-theme-1.3.0.tar.gz"
sha512sums="e0810973fe77434efd7ca442c26784f5d894322832555953ff0c900835707bd797b5ce8308510590f31fe2a5f61e0ed465b3316cd8a3fa2f5ca9b1c5f432feaf  sphinx-readable-theme-1.3.0.tar.gz"