1 # Contributor: Matthew Bauer <mjbauer95@gmail.com>
2 # Maintainer: Steven Allen <steven@stebalien.com>
5 pkgname="$_pkgname-bzr"
8 pkgdesc='A Pandora Radio (pandora.com) player for the GNOME Desktop using the libpiano library (also used by pianobar).'
10 url="http://launchpad.net/$_pkgname"
12 depends=('python2' 'pygtk' 'python-notify' 'dbus-python' 'gstreamer0.10-python' 'gstreamer0.10-good-plugins' 'gstreamer0.10-bad-plugins' 'pyxdg' 'hicolor-icon-theme')
13 makedepends=('bzr' 'python2-distribute' 'python-distutils-extra')
14 optdepends=('python-keybinder')
15 provides=("$_pkgname")
16 source=("$pkgname.install")
17 install="$pkgname.install"
18 md5sums=('c9db50a1fd3d86efe4d6f8a7b044e718')
21 _bzrtrunk="https://code.launchpad.net/$_pkgname/trunk"
26 msg "Connecting to the server...."
28 if [[ -d "$_bzrmod" ]]; then
29 cd "$_bzrmod" && bzr --no-plugins pull "$_bzrtrunk" -r "$pkgver"
30 msg "The local files are updated."
32 bzr --no-plugins branch "$_bzrtrunk" "$_bzrmod" -q -r "$pkgver"
35 msg "BZR checkout done or server timeout"
37 [ -d ./${_bzrmod}-build ] && rm -rf ./${_bzrmod}-build
38 cp -r ./${_bzrmod} ./${_bzrmod}-build
42 cd "${srcdir}/${_bzrmod}-build"
43 python2 setup.py install --optimize=1 --prefix=/usr --root="${pkgdir}/"