# Contributor: Ray Rashif <schivmeister@gmail.com>
# Contributor: Alexandr Grigorcea <cahr.gr@gmail.com>
pkgname=nuvolaplayer
pkgver=2.3.0
pkgrel=1
pkgdesc="Integrated Google Music, Grooveshark, 8tracks and Hype Machine player."
arch=(i686 x86_64)
url="http://nuvolaplayer.fenryxo.cz"
license=('GPL3')
depends=('json-glib' 'intltool' 'gtk3' 'webkitgtk' 'python2' 'libnotify' 'libx11' 'libunique' 'libgee06' 'libsoup' 'gst-plugins-base' 'gst-plugins-good' 'gst-plugins-ugly')
makedepends=('vala' 'scour')
provides=('nuvola')
conflicts=('google-musc-frame-bzr')
optdepends=('gnome-shell-extension-mediaplayer-git: Gnome Shell integration' 'tsocks: Socks proxy support')
replaces=('google-music-frame-bzr' 'nuvola-bzr' 'nuvola-bzr-stable' 'nuvolaplayer-beta')
options=()
source=(https://launchpad.net/nuvola-player/2.3.x/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz)
md5sums=(63e4088c994dce39b59eb2aa23810e36)
install=nuvola.install
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
LDFLAGS="$LDFLAGS -ldl"
cat >./wscript.patch <<PATCHFILE
--- wscript 2013-12-26 14:46:03.514419015 +0100
+++ wscript.patched 2013-12-26 14:48:28.514412844 +0100
@@ -450,7 +450,7 @@
ctx.options.all_tests = True
def post(ctx):
- if ctx.cmd == "build":
+ if ctx.cmd == "build" and not ctx.options.skip_tests:
from waflib.Tools import glibtest
glibtest.results(ctx)
PATCHFILE
patch <wscript.patch
python2 ./waf configure --prefix=/usr --no-unity-quick-list --skip-tests --with-gstreamer=1.0
sed -i "s/ctx.env.SCOUR/'python2 \/usr\/bin\/scour'/" wscript
python2 ./waf build $MAKEFLAGS --skip-tests || return 1
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 ./waf install --destdir="${pkgdir}"
}