summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Pałubicki2019-02-28 23:39:12 +0100
committerMichał Pałubicki2019-02-28 23:40:26 +0100
commit91062aaec191ad18b2ca0bf47ab95184ccf11330 (patch)
tree57263e9fac1aa9ebf8f131286bebda68a583a03c
parent4719452c4b1cc5ea587c8c52b92e36c6bf910049 (diff)
downloadaur-91062aaec191ad18b2ca0bf47ab95184ccf11330.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 34d69c7cc0e..d0960ca4ed9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,13 @@
pkgbase = python-agate-sql
pkgdesc = Adds SQL read/write support to agate
pkgver = 0.5.3
- pkgrel = 2
+ pkgrel = 3
url = http://agate-sql.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-sqlalchemy>=1.0.8
diff --git a/PKGBUILD b/PKGBUILD
index 934985ac837..eecc7545821 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=agate-sql
pkgname=python-$_pkgname
pkgver=0.5.3
-pkgrel=2
+pkgrel=3
pkgdesc="Adds SQL read/write support to agate"
arch=('any')
url="http://agate-sql.readthedocs.org/"
@@ -15,6 +15,8 @@ depends=(
)
makedepends=(
'python-setuptools'
+ 'python-sphinx>=1.2.2'
+ 'python-sphinx_rtd_theme>=0.1.6'
)
source=("https://github.com/wireservice/agate-sql/archive/${pkgver}.tar.gz")
sha256sums=('73f7ed13092a0ec18f94820290e5c372cfeea256daef53300ae168965d40a37a')
@@ -22,4 +24,8 @@ sha256sums=('73f7ed13092a0ec18f94820290e5c372cfeea256daef53300ae168965d40a37a')
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"
}