# Maintainer: Filipe Nascimento # Contributor: Julien Nicoulaud pkgname=howdoi pkgver=2.0.20 pkgrel=2 pkgdesc="Instant coding answers via the command line" arch=('any') url="https://github.com/gleitz/howdoi" license=('MIT') depends=('keep' 'python-appdirs' 'python-cachelib' 'python-cssselect' 'python-lxml' 'python-colorama' 'python-pygments' 'python-pyquery' 'python-requests' 'python-setuptools' 'python-rich') source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz") sha256sums=('51cd40c53e0c0f8f8da88f480eb7423183be2350ab4f0a4d9d4763ca6ac3e2a9') build() { cd ${pkgname}-${pkgver} python setup.py build } package() { cd ${pkgname}-${pkgver} python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }