1 # Contributor: Javier ‘Phrodo_00‘ Aravena <phrodo.00@gmail.com>
2 # Mantainer: iosonofabio Fabio Zanini <fabio.zanini@fastmail.fm>
6 pkgdesc="Plugin for Bazaar that aims to provide GTK+ interfaces to most Bazaar operations."
8 url="http://bazaar-vcs.org/bzr-gtk"
10 depends=('pygtk' 'bzr' 'pycairo' 'libglade')
11 source=("https://launchpad.net/bzr-gtk/gtk2/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz")
12 md5sums=('a7c2f27072bcacdcf8983ca6a2426dbd')
15 cd "${srcdir}/${pkgname}-${pkgver}"
17 # Replace python with python2
18 for file in $(find ./ -name '*.py' -print); do
19 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
20 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
23 # Correct open_display bug
24 patch <"${startdir}/bzr_notify_open_display.patch"
25 patch <"${startdir}/bzr_handle_patch_open_display.patch"
28 cd "${startdir}/src/${pkgname}-${pkgver}/"
29 python2 setup.py install --prefix'=/usr' --root="${startdir}/pkg" || return 1