aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-sphinx_rtd_theme/APKBUILD
blob: 838d6668d377d5ce5100c69964706226a0aeae5d (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-sphinx_rtd_theme
pkgver=0.1.9
pkgrel=0
pkgdesc="Sphinx theme for readthedocs.org"
url="https://github.com/snide/sphinx_rtd_theme"
arch="noarch"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev python-dev py-setuptools"
install=""
subpackages=""
source="sphinx_rtd_theme-$pkgver.tar.gz::https://github.com/snide/sphinx_rtd_theme/archive/$pkgver.tar.gz"

_builddir="$srcdir"/sphinx_rtd_theme-$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="f1745463231113bb2677ad34f0a20b3a  sphinx_rtd_theme-0.1.9.tar.gz"
sha256sums="46fd802c696b78e2681b21084c0d96c36e12b118c4c0cdf94f4a0702138f82a5  sphinx_rtd_theme-0.1.9.tar.gz"
sha512sums="2ac313c8cf276bb8fc8c92cb3f39c1e216f8e0072a11a26af4fb6a37132e45b1c472c1f9625f171a411b0fcb909cc695b0af5f3def53ffa0ec3f568df7b0b197  sphinx_rtd_theme-0.1.9.tar.gz"