Skip to content
Snippets Groups Projects
Commit b1800a42 authored by Daniel M. Capella's avatar Daniel M. Capella
Browse files

`build_sphinx` removed

parent b7a8fd64
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
pkgname=csvkit
pkgver=1.1.1
pkgrel=2
pkgrel=3
pkgdesc='A suite of utilities for converting to and working with CSV'
arch=(any)
url="https://$pkgname.readthedocs.org"
......@@ -27,10 +27,10 @@ sha256sums=('bdb36aba91c5765930c3876e3683dcc75490962047468c1e75871c1da6e9f713')
build() {
cd "$_archive"
python -m build -wn
python setup.py build_sphinx
make -C docs html
_rtd_theme_path="$(python -c 'import sphinx_rtd_theme; print(sphinx_rtd_theme.get_html_theme_path())')"
rm -rvf "build/sphinx/html/_static"
ln -svf "$_rtd_theme_path/sphinx_rtd_theme/static" "build/sphinx/html/_static"
rm -rvf "docs/_build/html/_static"
ln -svf "$_rtd_theme_path/sphinx_rtd_theme/static" "docs/_build/html/_static"
}
check() {
......@@ -43,6 +43,6 @@ package() {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
install -dm0755 "$pkgdir/usr/share/doc/"
cp -rv build/sphinx/html "$pkgdir/usr/share/doc/$pkgname"
cp -rv docs/_build/html "$pkgdir/usr/share/doc/$pkgname"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment