aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-alabaster/APKBUILD
blob: e8bfdf719fbff6b79e79c721b3e8a100b0e581ec (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
43
44
45
46
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-alabaster
_pkgname=alabaster
pkgver=0.7.12
pkgrel=1
pkgdesc="Modified Kr Sphinx doc theme"
url="https://github.com/bitprophet/alabaster"
arch="noarch"
license="BSD"
depends=""
makedepends="python2-dev python3-dev py-setuptools"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$_pkgname-$pkgver.tar.gz::https://github.com/bitprophet/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	python2 setup.py build || return 1
	python3 setup.py build || return 1
}

package() {
	mkdir -p "$pkgdir"
}

_py2() {
	replaces="$pkgname"
	_py python2
}

_py3() {
	_py python3
}

_py() {
	local python="$1"
	pkgdesc="$pkgdesc (for $python)"
	depends="$depends $python"
	install_if="$pkgname=$pkgver-r$pkgrel $python"

	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

sha512sums="e6bcfbf02ee83eaa33c71b8a3d1cb767cc4bfc2b95f79a86a59292988e28abea32a7d55be9a9cdfa9592efed5de3afd7604f9bb65e1f90ba5f377ec54d540f9e  alabaster-0.7.12.tar.gz"