updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / python3-dulwich-git / PKGBUILD
blob20bc941b7a4a639d57418d2152c4faa9f92796af
1 # Contributor: Chris Eberle <eberle1080@gmail.com>
3 pkgname="python3-dulwich-git"
4 pkgver=20111127
5 pkgrel=1
6 pkgdesc="Pure-Python implementation of the Git file formats and protocols"
7 url="https://github.com/eberle1080/dulwich-py3k"
8 depends=('python')
9 makedepends=('git' 'python-distribute')
10 provides=('python3-dulwich')
11 conflicts=('python-dulwich')
13 arch=('any')
14 license=('GPL2')
16 _gitroot="git://github.com/eberle1080/dulwich-py3k.git"
17 _gitname="dulwich"
18 _snapshot="d9ca7ad2979d7edf361a601ebc4a2c7d94d9059b"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
37   git branch mystable $_snapshot
38   git checkout -f mystable
40   #
41   # BUILD HERE
42   #
44   python setup.py install --optimize=1 --root=${pkgdir} || return 1