aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-sphinx-theme-quark/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/py-sphinx-theme-quark/APKBUILD')
-rw-r--r--testing/py-sphinx-theme-quark/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/py-sphinx-theme-quark/APKBUILD b/testing/py-sphinx-theme-quark/APKBUILD
new file mode 100644
index 0000000000..66ad4a9d48
--- /dev/null
+++ b/testing/py-sphinx-theme-quark/APKBUILD
@@ -0,0 +1,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"