summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2021-05-14 11:58:25 +0800
committerUniversebenzene2021-05-14 11:58:25 +0800
commita1c488b5a66668fd4fe974af16169c9d481d542c (patch)
tree76e8f4f5679bc796f64d151968161580ce291c5d
downloadaur-a1c488b5a66668fd4fe974af16169c9d481d542c.tar.gz
Initial import 0.3.1
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore8
-rw-r--r--PKGBUILD34
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ffa0d8a2a92
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python-sphinx-copybutton-doc
+ pkgdesc = Documentation for Sphinx-Copybutton extension
+ pkgver = 0.3.1
+ pkgrel = 1
+ url = https://sphinx-copybutton.readthedocs.io
+ arch = any
+ license = MIT
+ makedepends = python-sphinx-copybutton=0.3.1
+ makedepends = ipython
+ source = https://files.pythonhosted.org/packages/source/s/sphinx-copybutton/sphinx-copybutton-0.3.1.tar.gz
+ md5sums = 52b3a51953ac19fef56e15f2a6be1b90
+
+pkgname = python-sphinx-copybutton-doc
+ pkgdesc = Documentation for Sphinx-Copybutton extension
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..3002ef3c4dc
--- /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 00000000000..ee0cd1d1eb1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Astro Benzene <universebenzene at sina dot com>
+_pyname=sphinx-copybutton
+pkgname="python-${_pyname}-doc"
+pkgver=0.3.1
+pkgrel=1
+pkgdesc="Documentation for Sphinx-Copybutton extension"
+arch=('any')
+url="https://sphinx-copybutton.readthedocs.io"
+license=('MIT')
+makedepends=("python-${_pyname}=${pkgver}" 'ipython')
+source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
+md5sums=('52b3a51953ac19fef56e15f2a6be1b90')
+
+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}/doc
+
+ make html
+}
+
+package() {
+ pkgdesc="Documentation for Sphinx-Copybutton extension"
+ cd ${srcdir}/${_pyname}-${pkgver}/doc/_build
+
+ install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../LICENSE
+ install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase%-doc}"
+ cp -a html "${pkgdir}/usr/share/doc/${pkgbase%-doc}"
+}