summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d16dad13a4a74242b5ba4e934ab4a6e728ed27a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pkgname=bzr-rewrite
pkgver=0.6.4
pkgrel=1
pkgdesc='Provides a rebase command for bzr similar to git rebase.'
arch=('any')
url='https://launchpad.net/bzr-rewrite'
license=('GPL')
depends=('bzr' 'python2')

source=(bzr+lp:bzr-rewrite)
sha256sums=('SKIP')

prepare() {
  cd bzr-rewrite
  # Replace python with python2
  for file in $(find ./ -name '*.py' -print); do
      sed -i 's,^#!.*/usr/bin/python,#!/usr/bin/python2,g' $file
      sed -i 's,^#!.*/usr/bin/env.*python,#!/usr/bin/env python2,g' $file
  done
}

build() {
  cd bzr-rewrite
  python2 ./setup.py build
}

package() {
  cd bzr-rewrite
  python2 ./setup.py install --root="${pkgdir}"
}