# Contributor: Francesco Colista # Maintainer: Francesco Colista setglobal pkgname = 'py-jedi' setglobal pkgver = '0.10.0' setglobal pkgrel = '0' setglobal pkgdesc = '"Awesome autocompletion and static analysis library for python.'" setglobal url = '"https://github.com/davidhalter/jedi'" setglobal arch = '"noarch'" setglobal license = '"MIT'" setglobal makedepends = '"python2-dev python3-dev py-setuptools'" setglobal subpackages = ""py2-$(pkgname#py-):_py2 py3-$(pkgname#py-):_py3"" setglobal source = ""$pkgname-$pkgver.tar.gz::https://github.com/davidhalter/$(pkgname/py-/)/archive/v$pkgver.tar.gz"" setglobal builddir = ""$srcdir/$(pkgname/py-/)-$pkgver"" proc build { cd $builddir python2 setup.py build || return 1 python3 setup.py build || return 1 } proc package { mkdir -p $pkgdir } proc _py2 { setglobal replaces = $pkgname _py python2 } proc _py3 { _py python3 } proc _py { local python="$1" setglobal pkgdesc = ""$pkgdesc (for $python)"" setglobal depends = ""$depends $python"" ## remove if arch isn't noarch setglobal install_if = ""$pkgname=$pkgver-r$pkgrel $python"" cd $builddir $python setup.py install --prefix=/usr --root="$subpkgdir" } setglobal sha512sums = '"64ff10cf041a107ca709802b41d9ae27b31fc7fa6cff0efdde4c78d01351efdc1333f1a02e2b8004453574199a4651043e7c3fea7149bfe5e3f0e93c23c38320 py-jedi-0.10.0.tar.gz'"