# Maintainer: David Verelst # Contributor: xiretza pkgname=python2-jedi-git _gitname=jedi epoch=1 pkgver=v0.17.0.r148.2d672d2f pkgrel=1 pkgdesc="An awesome autocompletion, static analysis and refactoring library for Python" arch=(any) url="https://github.com/davidhalter/jedi" license=('MIT') depends=('python2') makedepends=('git' 'python2-setuptools') provides=('python2-jedi') conflicts=('python2-jedi') options=(!emptydirs) source=(git+https://github.com/davidhalter/jedi.git git+https://github.com/davidhalter/typeshed git+https://github.com/typeddjango/django-stubs) md5sums=('SKIP' 'SKIP' 'SKIP') pkgver() { cd "$srcdir/$_gitname" printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" } prepare() { cd "$srcdir/$_gitname" git submodule init git config submodule."jedi/third_party/typeshed".url "${srcdir}/typeshed" git config submodule."jedi/third_party/django-stubs".url "${srcdir}/django-stubs" git submodule update --recursive } build() { cd "$srcdir/$_gitname" python2 setup.py build } package() { cd "$srcdir/$_gitname" python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt }