1 # Contributor: Samed Beyribey <ras0ir AT eventualis DOT org>
2 # Contributor: Nelson VuDu <vudu DOT curse AT gmail DOT com>
7 pkgdesc="The bzr trunk series for LottaNZB, a sabnzbd GUI written in PyGTK"
9 url="https://launchpad.net/lottanzb/trunk"
11 depends=('sabnzbd' 'python2' 'python-configobj')
14 conflicts=('lottanzb')
15 install=${pkgname}.install
18 _bzrbranch=lp:lottanzb/${_bzrmod}
23 if [ -d ${_bzrmod}/.bzr ]; then
24 (cd ${_bzrmod} && bzr pull -r ${pkgver}) || return 1
26 bzr branch ${_bzrbranch} ${_bzrmod} || return 1
29 msg "BZR checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "${srcdir}/${_bzrmod}-build"
33 cp -r "${srcdir}/${_bzrmod}" "${srcdir}/${_bzrmod}-build"
34 cd "${srcdir}/${_bzrmod}-build"
40 python2 setup.py build || return 1
41 python2 setup.py install --packaging-mode --root=$pkgdir --prefix=/usr || return 1