summaryrefslogtreecommitdiff
path: root/community/python-pygit2/PKGBUILD
blob: 9df58821a16c16cc7eae2d39445c5972f0956087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: PKGBUILD 116289 2014-07-24 03:35:26Z thestinger $
# Maintainer: Daniel Micay <danielmicay@gmail.com>

pkgbase=python-pygit2
pkgname=(python-pygit2 python2-pygit2)
pkgver=0.21.1
pkgrel=1
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=('b453f5483b3da061aa6063916a4b6255')

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
}