PKGBUILD 1.03 KB
Newer Older
Manuel Tortosa's avatar
Manuel Tortosa committed
1 2 3 4 5
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
Dustin Ricketts's avatar
Dustin Ricketts committed
6 7
# Contributer: Joshua L. Blocher <verbalshadow@gmail.com>

Manuel Tortosa's avatar
Manuel Tortosa committed
8 9 10
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf

Dustin Ricketts's avatar
Dustin Ricketts committed
11
pkgname=bzr
philm's avatar
philm committed
12
pkgver=2.2.2
13
pkgrel=2
Dustin Ricketts's avatar
Dustin Ricketts committed
14 15 16 17
pkgdesc="A decentralized revision control system (bazaar)"
arch=('i686' 'x86_64')
url="http://www.bazaar-vcs.org"
license=('GPL')
Manuel's avatar
Manuel committed
18
depends=('python2')
philm's avatar
philm committed
19 20 21 22
source=(http://launchpad.net/bzr/2.2/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz
        bzr-2.2.2-python-2.7.patch)
md5sums=('d1bfa2fd1aad282c423c78d62ebacb21'
         '0f0d8e0d31032cde59565b6c74a37e41')
Dustin Ricketts's avatar
Dustin Ricketts committed
23 24 25

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
philm's avatar
philm committed
26
  patch -Np0 -i ${startdir}/bzr-2.2.2-python-2.7.patch || return 1
Dustin Ricketts's avatar
Dustin Ricketts committed
27
  sed -i 's|man/man1|share/man/man1|' setup.py
Manuel's avatar
Manuel committed
28
  python2 setup.py install --prefix=/usr --root=${pkgdir}
Dustin Ricketts's avatar
Dustin Ricketts committed
29 30 31 32

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