1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
2 # Contributor: Michał Pałubicki <maln0ir@gmx.com>
5 pkgname=python-$_pyname
8 pkgdesc='Adds SQL read/write support to agate'
10 url="https://$_pyname.readthedocs.org"
16 "${_pydeps[@]/#/python-}")
17 makedepends=(python-setuptools
19 checkdepends=(python-crate
22 _archive="$_pyname-$pkgver"
23 source=("$_archive.tar.gz::https://github.com/wireservice/$_pyname/archive/$pkgver.tar.gz")
24 sha256sums=('610d6a67b5e6924da72a09d5a9b5eb8aa2f7a66fc986df5bd92605163cb3742f')
30 local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
31 rm -rvf docs/_build/html/_static
32 ln -svf "$site_packages/sphinx_rtd_theme/static" docs/_build/html/_static
42 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
43 install -dm0755 "$pkgdir/usr/share/doc/"
44 cp -rv docs/_build/html "$pkgdir/usr/share/doc/$pkgname"
45 install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING