updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / bzr-email / PKGBUILD
blobad35899e558b4db0692b2c3571d9d478d67a9764
1 # Contributor: zhangkaizhao <zkc@zopen.cn>
3 pkgname=bzr-email
4 pkgver=0.0.1
5 pkgrel=40
6 pkgdesc="A bzr commit hook that sends emails"
7 arch=(i686 x86_64)
8 url="https://launchpad.net/bzr-email"
9 license=('GNU GPL v2')
10 groups=(bzr)
11 depends=('python' 'setuptools' 'bzr')
12 makedepends=('bzr')
13 source=()
14 _bzrtrunk=https://code.launchpad.net/bzr-email/trunk
15 _bzrsrc=bzr-email
16 md5sums=()
18 build() {
19   cd $startdir/src
20   if [[ -d ${_bzrsrc} ]]; then
21     (rm -rf $_bzrsrc)
22   fi
23   msg "Connecting to $_bzrtrunk bzr server...."
24   bzr branch -r $pkgrel ${_bzrtrunk} ${_bzrsrc}
25   cd $startdir/src/${_bzrsrc}
26   python setup.py install --root=$startdir/pkg || return 1