Skip to content

Instantly share code, notes, and snippets.

@davidovitch
Created May 16, 2014 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidovitch/c37e36b8af28ecd8f607 to your computer and use it in GitHub Desktop.
Save davidovitch/c37e36b8af28ecd8f607 to your computer and use it in GitHub Desktop.
AUR PKGBUILD for python2-jedi-git
pkgname=python2-jedi-git
_gitname=jedi
pkgver=1
pkgrel=1
pkgdesc="Jedi is an autocompletion tool for Python that can be used in IDEs/editors"
arch=(any)
url="https://github.com/davidhalter/jedi"
license=('MIT')
depends=('python2')
makedepends=('git' 'python2-distribute')
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
source=('git://github.com/davidhalter/jedi.git')
# Because the sources are not static, skip Git checksum:
md5sums=('SKIP')
pkgver() {
cd $_gitname
# Use the tag of the last commit
#git describe --always | sed 's|-|.|g'
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
package() {
cd $_gitname
python2 setup.py install --root="${pkgdir}" --optimize=1 || exit 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment