summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Pałubicki2019-02-28 23:34:59 +0100
committerMichał Pałubicki2019-02-28 23:37:02 +0100
commitdab7a2494c3aa979c927c5817e8f7ccc61f8ad3f (patch)
tree5469fcb0852997191909d0005ea7b217034f847b
parente5855c51363786b74a07f00b420fb34105c1d0a1 (diff)
downloadaur-dab7a2494c3aa979c927c5817e8f7ccc61f8ad3f.tar.gz
Building docs
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 10 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5ee52c8b79d..e702dce368b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,13 @@
pkgbase = python-agate-dbf
pkgdesc = Adds read support for dbf files to agate
pkgver = 0.2.0
- pkgrel = 2
+ pkgrel = 3
url = http://agate-dbf.readthedocs.org/
arch = any
license = MIT
makedepends = python-setuptools
+ makedepends = python-sphinx>=1.2.2
+ makedepends = python-sphinx_rtd_theme>=0.1.6
depends = python
depends = python-agate>=1.5.0
depends = python-dbfread>=2.0.5
diff --git a/PKGBUILD b/PKGBUILD
index ed8bf8f9581..7280bc14723 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
_pkgname=agate-dbf
pkgname=python-$_pkgname
pkgver=0.2.0
-pkgrel=2
+pkgrel=3
pkgdesc="Adds read support for dbf files to agate"
arch=('any')
url="http://agate-dbf.readthedocs.org/"
@@ -16,6 +16,8 @@ depends=(
)
makedepends=(
'python-setuptools'
+ 'python-sphinx>=1.2.2'
+ 'python-sphinx_rtd_theme>=0.1.6'
)
source=("https://github.com/wireservice/agate-dbf/archive/${pkgver}.tar.gz")
sha256sums=('fcdb80a52f1738da7313ef7ccc6476254ae4bca9c77fe548bd478cc8b1de34c9')
@@ -23,6 +25,10 @@ sha256sums=('fcdb80a52f1738da7313ef7ccc6476254ae4bca9c77fe548bd478cc8b1de34c9')
package() {
cd "$srcdir/$_pkgname-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1
+
+ python setup.py build_sphinx
+ mkdir -p "$pkgdir/usr/share/doc"
+ cp -rv "$srcdir/$_pkgname-$pkgver/build/sphinx/html" "$pkgdir/usr/share/doc/$_pkgname"
}