1 # Contributor: Nuno Araujo <nuno.araujo at russo79.com>
2 # Maintainer: Evan Martin <martine@danga.com>, Andy Smith <andy@term.ie>
3 # Packager: Samir Faci <csgeek@esamir.com>
8 pkgdesc="git-bzr: a bidirectional git - bazaar gateway"
10 url="http://github.com/termie/git-bzr-ng"
13 depends=('git' 'bzr' 'bzr-fastimport')
27 _gitroot='http://github.com/termie/git-bzr-ng.git'
29 _buildir=${_gitname}-build
34 msg 'Connecting to GIT server...'
35 if [ -d ${_gitname} ]; then
36 cd ${_gitname} && git pull origin
42 msg 'GIT checkout done or server timeout.'
43 if [ -d ${_buildir} ]; then
44 msg 'Cleaning previous build...'
48 git clone ${_gitname} ${_buildir}
52 for file in $(find . -type f -name '*' -print); do
53 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
54 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
60 install -d "${pkgdir}/usr/lib/git-core/"
61 install -o root -g root -m655 git-bzr ${pkgdir}/usr/lib/git-core/