updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / python2-libgit2-git / PKGBUILD
blob00b5b6814211e99d9718bb0ce4b1c6c2030cd562
1 # Maintainer: HervĂ© Cauwelier <herve/oursours/net>
3 pkgname="python2-libgit2-git"
4 pkgver=20110309
5 pkgrel=1
6 pkgdesc="Python bindings for libgit2 (pygit2)"
7 url="https://github.com/libgit2/pygit2"
8 depends=('python2' 'libgit2-git' 'openssl' 'zlib')
9 makedepends=('git' 'libgit2-git')
10 provides=('python2-libgit2' 'pygit2')
11 conflicts=('python2-libgit2' 'pygit2')
12 arch=('any')
13 license=('GPL2')
15 _gitroot="https://github.com/libgit2/pygit2.git"
16 _gitname="pygit2"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   #
37   # BUILD HERE
38   #
40   python2 setup.py install --root=${pkgdir} || return 1
41   python2 setup.py test