summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f95c720b6dbe31a4fc63f07c35c677a6e1d45ec (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
31
32
# Contributor: Vojtech Horky <AUR / hotspur>
pkgname=bzr-bisect-bzr
pkgver=84
pkgrel=1
pkgdesc="Bazaar plugin to find a bug using binary search"
arch=('any')
url="https://launchpad.net/bzr-bisect/"
license=('GPL')
depends=("python2" "bzr")
makedepends=("bzr" "python2")
source=()
md5sums=()
_bzrbranch="lp:bzr-bisect"
_bzrname="bzr-bisect"

build() {
	cd "${srcdir}"
	msg "Connecting to BZR server..."

	if [ -d "${srcdir}/${_bzrname}" ] ; then
		cd "${_bzrname}" && bzr pull "${_bzrbranch}"
		msg "Local repository updated."
	else
		bzr co "${_bzrbranch}"
		msg "BZR checkout done or server timeout"
	fi
}

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