summaryrefslogtreecommitdiff
path: root/extra/bzr/PKGBUILD
blob: cd55d811d6070d5596de19f1a50c9eba953fa6a7 (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
# $Id: PKGBUILD 119485 2011-04-11 18:46:01Z eric $
# Maintainer :
# Contributor: Hugo Doria <hugo@archlinux.org>

pkgname=bzr
pkgver=2.3.1
pkgrel=1
pkgdesc="A decentralized revision control system (bazaar)"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.bazaar-vcs.org"
license=('GPL')
depends=('python2')
optdepends=('python-paramiko: for sftp support')
source=(http://launchpad.net/bzr/${pkgver%.*}/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz)
md5sums=('1a4367ce59a2880f321ecb882e195856')
sha1sums=('49b9dfb5a01ffd87a120f8a7abf4833a482ba245')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  sed -i 's|man/man1|share/man/man1|' setup.py
  python2 setup.py build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python2 setup.py install --prefix=/usr --root="${pkgdir}"

  # bash-completion
  install -D -m644 contrib/bash/bzr "${pkgdir}/etc/bash_completion.d/bzr"
}