summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMiguel de Val-Borro2019-11-03 11:42:05 -0500
committerMiguel de Val-Borro2019-11-03 11:42:05 -0500
commit815806d0c5fc7c9678d4b174ae563713f820c887 (patch)
treea6e2ee4560910862b4f797debc2867999ebbcd60 /PKGBUILD
downloadaur-python-sbpy-doc.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7f365b798c5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Miguel de Val-Borro <miguel dot deval at gmail dot com>
+pkgname=python-sbpy-doc
+_pyname=sbpy
+pkgver=0.2
+pkgrel=1
+pkgdesc="Documentation for Python sbpy module"
+arch=('i686' 'x86_64')
+url="http://sbpy.readthedocs.io/"
+license=('BSD')
+makedepends=('python-sphinx-astropy')
+source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
+md5sums=('6421c7c58dc473974d1aaf11441a6032')
+
+prepare() {
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ sed -i -e '/auto_use/s/True/False/' setup.cfg
+}
+
+build() {
+ cd ${srcdir}/${_pyname}-${pkgver}
+ python setup.py build_docs
+}
+
+package() {
+ cd ${srcdir}/${_pyname}-${pkgver}/docs/_build
+
+ install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
+ cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
+}