updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / nuvola-bzr / PKGBUILD
blob5dd8acc3abdb431fee670ebf622610a6f764e088
1 # Contributor: Ray Rashif <schivmeister@gmail.com>
2 # Contributor: Alexandr Grigorcea <cahr.gr@gmail.com>
4 pkgname=nuvola-bzr
5 pkgver=208
6 pkgrel=1
7 pkgdesc="Integrated Google Music, Grooveshark, 8tracks and Hype Machine player."
8 arch=(i686 x86_64)
9 url="https://launchpad.net/nuvola-player"
10 license=('GPLv3')
11 depends=('intltool' 'gtk2' 'libwebkit' 'python2' 'libnotify' 'libx11' 'libunique' 'libgee' 'libsoup')
12 makedepends=('bzr' 'vala' )
13 provides=()
14 conflicts=('google-musc-frame-bzr')
15 optdepends=('gnome-shell-extension-mediaplayer-git: Gnome Shell integration')
16 replaces=('google-music-frame-bzr')
17 options=()
18 source=()
19 md5sums=()
20 install=nuvola-bzr.install
22 _bzrtrunk=lp:nuvola-player
23 _bzrmod=nuvola-player
25 build() {
27   msg "Connecting to the server...."
28   cd ${srcdir}
29   if [ -d ${_bzrmod} ] ; then
30     bzr pull -d ${_bzrmod}
31     msg "The local files are updated."
32   else
33     bzr branch ${_bzrtrunk}
34   fi
36   msg "BZR checkout done or server timeout"
37   msg "Starting make..."
39   rm -rf "${_bzrmod}-build"
40   cp -r "${_bzrmod}" "${_bzrmod}-build"
41   cd "${_bzrmod}-build"
43   LDFLAGS="$LDFLAGS -ldl"
45   python2 ./waf configure --prefix=/usr
46   python2 ./waf build $MAKEFLAGS || return 1
49 package() {
50   cd "${srcdir}/${_bzrmod}-build"
52   python2 ./waf install --destdir="${pkgdir}"