# $Id: PKGBUILD 115212 2014-07-06 16:44:00Z thestinger $ # Maintainer: Daniel Micay pkgbase=python-pygit2 pkgname=(python-pygit2 python2-pygit2) pkgver=0.21.0 pkgrel=0 pkgdesc='Python bindings for libgit2' url="https://github.com/libgit2/pygit2" depends=(libgit2) makedepends=(python-cffi python2-cffi) arch=(i686 x86_64) license=('GPL2') source=(https://github.com/libgit2/pygit2/archive/v${pkgver}.tar.gz) md5sums=('e72518f75fd8d960eefd3150f54aafaf') package_python-pygit2() { cd pygit2-$pkgver depends+=(python) replaces=(python-libgit2) conflicts=(python-libgit2) LANG=en_US.UTF8 python setup.py install --root="$pkgdir" --optimize=1 } package_python2-pygit2() { cd pygit2-$pkgver depends+=(python2) replaces=(python2-libgit2) conflicts=(python2-libgit2) python2 setup.py install --root="$pkgdir" --optimize=1 }