1 # Submitter: Carlos Eduardo Moreira dos Santos (cemsbr) <cems at domain cemshost.com.br>
2 # Contributor: Javier ‘Phrodo_00‘ Aravena <phrodo.00@gmail.com>
3 # Mantainer: iosonofabio Fabio Zanini <fabio.zanini@fastmail.fm>
8 pkgdesc="Plugin for Bazaar that aims to provide GTK+ interfaces to most Bazaar operations. It downloads source from launchpad bazaar repository, using the last commit."
10 url="http://bazaar-vcs.org/bzr-gtk"
12 depends=('pygtk' 'bzr' 'pycairo' 'libglade' 'bzr-stats')
21 msg "Connecting to bazaar server..."
23 # Download last commit
24 if [ -d ${_bzrname} ] ; then
27 bzr checkout --lightweight "lp:${_bzrname}"
29 msg "bazaar checkout done or server timeout"
33 # Replace python with python2
34 for file in $(find ./ -name '*.py' -print); do
35 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
36 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
39 msg "Ready to install..."
42 python2 setup.py install --prefix'=/usr' --root="${startdir}/pkg"