diff options
author | Universebenzene | 2021-05-17 14:01:30 +0800 |
---|---|---|
committer | Universebenzene | 2021-05-17 14:01:30 +0800 |
commit | 97c4a6d76709242d96f1f2385b017e0c6f27923f (patch) | |
tree | 31c325fd147c9123ad3f89b7e1027175aa4043a9 | |
download | aur-97c4a6d76709242d96f1f2385b017e0c6f27923f.tar.gz |
Initial import 0.2.3
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 49 |
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6e5002bd8d62 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python-sphinx-togglebutton + pkgdesc = Toggle page content and collapse admonitions in Sphinx + pkgver = 0.2.3 + pkgrel = 1 + url = https://sphinx-togglebutton.readthedocs.io + arch = any + license = MIT + checkdepends = python-sphinx + checkdepends = python-wheel + makedepends = python-setuptools + source = https://files.pythonhosted.org/packages/source/s/sphinx-togglebutton/sphinx-togglebutton-0.2.3.tar.gz + md5sums = 6acce8e5f2e8a83c3b4226b5c98f7b55 + +pkgname = python-sphinx-togglebutton + depends = python-sphinx + depends = python-setuptools + depends = python-wheel + optdepends = python-sphinx-book-theme: sphinx + optdepends = python-myst-nb: sphinx + 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..3afc29b0e425 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Astro Benzene <universebenzene at sina dot com> +pkgbase=python-sphinx-togglebutton +_pyname=${pkgbase#python-} +pkgname=("python-${_pyname}") +#"python-${_pyname}-doc") +pkgver=0.2.3 +pkgrel=1 +pkgdesc="Toggle page content and collapse admonitions in Sphinx" +arch=('any') +url="https://sphinx-togglebutton.readthedocs.io" +license=('MIT') +makedepends=('python-setuptools') +checkdepends=('python-sphinx' 'python-wheel') +source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") +md5sums=('6acce8e5f2e8a83c3b4226b5c98f7b55') + +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 +# pytest #|| warning "Tests failed" +} + +package_python-sphinx-togglebutton() { + depends=('python-sphinx' 'python-setuptools' 'python-wheel') + optdepends=('python-sphinx-book-theme: sphinx' + 'python-myst-nb: sphinx') + 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-togglebutton-doc() { +# pkgdesc="Documentation for Sphinx-Gallery extension" +# cd ${srcdir}/${_pyname}-${pkgver}/doc/_build +# +# install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}" +# cp -a html "${pkgdir}/usr/share/doc/${pkgbase}" +#} |