diff options
author | Universebenzene | 2021-05-15 20:13:54 +0800 |
---|---|---|
committer | Universebenzene | 2021-05-15 20:13:54 +0800 |
commit | c5670ec88602ec3cdd5944b7dffcec5387b1492a (patch) | |
tree | 43b89ccb3a98e8621117e75409564ea085650fbd | |
download | aur-c5670ec88602ec3cdd5944b7dffcec5387b1492a.tar.gz |
Initial import 0.5.2
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 63 |
3 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0f57ec85308e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = python-sphinx-panels + pkgdesc = A sphinx extension for creating panels in a grid layout + pkgver = 0.5.2 + pkgrel = 1 + url = https://sphinx-panels.readthedocs.io + arch = any + license = MIT + checkdepends = python-sphinx + makedepends = python-setuptools + source = https://files.pythonhosted.org/packages/source/s/sphinx-panels/sphinx-panels-0.5.2.tar.gz + md5sums = d44fbb7c8ec3659fc34b4276580e769c + +pkgname = python-sphinx-panels + depends = python-sphinx + depends = python-importlib_resources + optdepends = python-sphinx_rtd_theme: themes + optdepends = python-pydata-sphinx-theme: themes + optdepends = python-sphinx-book-theme: themes + optdepends = python-myst-parser: themes + optdepends = python-pre-commit: code_style + optdepends = python-sphinx-autobuild: live-dev + optdepends = python-web-compile: live-dev + optdepends = python-sphinx-panels-doc: Documentation + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..3002ef3c4dc8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +src +pkg +*.log +*.src.tar.gz +*.tar.gz +*.tar.bz2 +*.part +*.pkg.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..07dae5550379 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Astro Benzene <universebenzene at sina dot com> +pkgbase=python-sphinx-panels +_pyname=${pkgbase#python-} +pkgname=("python-${_pyname}") +#"python-${_pyname}-doc") +pkgver=0.5.2 +pkgrel=1 +pkgdesc=" A sphinx extension for creating panels in a grid layout" +arch=('any') +url="https://sphinx-panels.readthedocs.io" +license=('MIT') +makedepends=('python-setuptools') +checkdepends=('python-sphinx') +source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") +md5sums=('d44fbb7c8ec3659fc34b4276580e769c') + +#prepare() { +# cd ${srcdir}/${_pyname}-${pkgver}/doc +# +## sed -i "/^exclude/s/\"\]/\",\ \"\*\*\.ipynb_checkpoints\"\]/" conf.py +# sed -i "/^extensions/s/directive\"\]/directive\",\ \'IPython\.sphinxext\.ipython_console_highlighting\'\]/" conf.py +#} + +build() { + cd ${srcdir}/${_pyname}-${pkgver} + python setup.py build + +# msg "Building Docs" +# python setup.py build_sphinx +} + +check() { + cd ${srcdir}/${_pyname}-${pkgver} + + python setup.py test || warning "Tests failed" +# pytest #|| warning "Tests failed" +} + +package_python-sphinx-panels() { + depends=('python-sphinx' 'python-importlib_resources') + optdepends=('python-sphinx_rtd_theme: themes' + 'python-pydata-sphinx-theme: themes' + 'python-sphinx-book-theme: themes' + 'python-myst-parser: themes' + 'python-pre-commit: code_style' + 'python-sphinx-autobuild: live-dev' + 'python-web-compile: live-dev' + 'python-sphinx-panels-doc: Documentation') + cd ${srcdir}/${_pyname}-${pkgver} + + install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -D -m644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" + python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 +} + +#package_python-sphinx-panels-doc() { +# pkgdesc="Documentation for Sphinx-Panels extension" +# cd ${srcdir}/${_pyname}-${pkgver}/build/sphinx +# +# install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../LICENSE +# install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}" +# cp -a html "${pkgdir}/usr/share/doc/${pkgbase}" +#} |