# Maintainer of this PKGBUILD file: Martino Pilia _pkgname=sphinx-autodoc-typehints pkgname=python-$_pkgname pkgver=1.5.1 pkgrel=1 pkgdesc="Type hints support for the Sphinx autodoc extension" arch=('any') url="https://github.com/agronholm/sphinx-autodoc-typehints" license=('MIT') depends=('python-sphinx') optdepends=() makedepends=('python-setuptools') source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") sha256sums=('fd37b7af3e0af946372830d0a665918e27f63d6a26806a2af05fe31c7aff20a3') package() { cd "$srcdir/$_pkgname-$pkgver" install -D -m644 ${srcdir}/$_pkgname-$pkgver/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" python setup.py install --optimize=1 --root=$pkgdir }