updated on Fri Jan 13 00:14:41 UTC 2012
[aur-mirror.git] / pithos-bzr / PKGBUILD
blobebba05d9dad844602701549f32e3798ba461ed31
1 # Contributor: Matthew Bauer <mjbauer95@gmail.com>
2 # Maintainer: Steven Allen <steven@stebalien.com>
4 _pkgname='pithos'
5 pkgname="$_pkgname-bzr"
6 pkgver=189
7 pkgrel=2
8 pkgdesc='A Pandora Radio (pandora.com) player for the GNOME Desktop using the libpiano library (also used by pianobar).'
9 arch=('any')
10 url="http://launchpad.net/$_pkgname"
11 license=('GPL')
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')
20 _bzrmod="$_pkgname"
21 _bzrtrunk="https://code.launchpad.net/$_pkgname/trunk"
23 build() {
24         cd "${srcdir}"
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."
31     else
32          bzr --no-plugins branch "$_bzrtrunk" "$_bzrmod" -q -r "$pkgver"
33     fi
35         msg "BZR checkout done or server timeout"
37         [ -d ./${_bzrmod}-build ] && rm -rf ./${_bzrmod}-build
38         cp -r ./${_bzrmod} ./${_bzrmod}-build
41 package() {
42         cd "${srcdir}/${_bzrmod}-build"
43         python2 setup.py install --optimize=1 --prefix=/usr --root="${pkgdir}/"