diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-11-29 13:46:10 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-11-29 13:46:10 +0000 |
commit | 41b927f7849ef34885e9afe49211324932905adb (patch) | |
tree | f541aab690969843c380b6a8d75e18e87fd82203 /testing/py-sphinx-theme-quark | |
parent | 71ea08d7ef0679fe5a3c234ba24ae483006acc00 (diff) | |
download | aports-41b927f7849ef34885e9afe49211324932905adb.tar.bz2 aports-41b927f7849ef34885e9afe49211324932905adb.tar.xz |
testing/py-sphinx-theme-quark: new aport
Diffstat (limited to 'testing/py-sphinx-theme-quark')
-rw-r--r-- | testing/py-sphinx-theme-quark/APKBUILD | 55 |
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" |