# $Id: PKGBUILD 108473 2014-03-27 14:48:08Z fyan $ # Maintainer: Daniel Micay pkgbase=python-pygit2 pkgname=(python-pygit2 python2-pygit2) pkgver=0.20.2 pkgrel=2 pkgdesc='Python bindings for libgit2' url="https://github.com/libgit2/pygit2" depends=(libgit2) makedepends=(python python2) arch=(i686 x86_64) license=('GPL2') source=(https://github.com/libgit2/pygit2/archive/v${pkgver}.tar.gz) md5sums=('97631fd2b468fa91a2f6f771ce95f242') package_python-pygit2() { cd "$srcdir/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 "$srcdir/pygit2-$pkgver" depends+=(python2) replaces=(python2-libgit2) conflicts=(python2-libgit2) python2 setup.py install --root="$pkgdir" --optimize=1 }