blob: 66ad4a9d48cdea94ed78594576c11d26d861b5b6 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-sphinx-theme-quark
_pkgname=quark-sphinx-theme
pkgver=0.5.0
pkgrel=0
pkgdesc="A Sphinx theme for Qt toolkit’s QTextBrowser"
url=" https://bitbucket.org/fk/quark-sphinx-theme"
arch="noarch"
license="BSD"
depends="py-sphinx"
makedepends="python2-dev python3-dev py-setuptools"
checkdepends="py-mock"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="https://pypi.python.org/packages/30/e7/2c9b618589dee281bd7991bbe7ee2fa8fb76ac0f91a5b8fa74134f6c4f00/$_pkgname-$pkgver.tar.bz2"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}
check() {
cd "$builddir"
python2 setup.py test
python3 setup.py test
}
package() {
mkdir -p "$pkgdir"
}
_py2() {
replaces="$pkgname"
depends="${depends//py-/py2-}"
_py python2
}
_py3() {
depends="${depends//py-/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="526b21fc013af43fef70a421fca20a5c349aa80e1b70c9fe69046e865921868f05af93d340263b0a2171d8d2c21de5ca10b80308dc1055e0e079e723bc93962a quark-sphinx-theme-0.5.0.tar.bz2"
|