1 # Contributor: Nuno Araujo <nuno.araujo at russo79.com>
3 pkgname=git-bzr-ng-penangtom
6 pkgdesc="git-bzr: a bidirectional git - bazaar gateway (penangtom branch)"
8 url="http://github.com/penangtom/git-bzr-ng"
11 depends=('git' 'bzr' 'bzr-fastimport-bzr')
15 conflicts=(git-bzr-ng)
25 _gitroot='http://github.com/penangtom/git-bzr-ng.git'
27 _buildir=${_gitname}-build
32 msg 'Connecting to GIT server...'
33 if [ -d ${_gitname} ]; then
34 cd ${_gitname} && git pull origin
40 msg 'GIT checkout done or server timeout.'
41 if [ -d ${_buildir} ]; then
42 msg 'Cleaning previous build...'
46 git clone ${_gitname} ${_buildir}
50 for file in $(find . -type f -name '*' -print); do
51 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
52 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
58 install -d "${pkgdir}/usr/lib/git-core/"
59 install -o root -g root -m655 git-bzr ${pkgdir}/usr/lib/git-core/