Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 26th, 2013  |  syntax: Bash  |  size: 1.73 KB  |  views: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Ray Rashif <schivmeister@gmail.com>
  2. # Contributor: Alexandr Grigorcea <cahr.gr@gmail.com>
  3.  
  4. pkgname=nuvolaplayer
  5. pkgver=2.3.0
  6. pkgrel=1
  7. pkgdesc="Integrated Google Music, Grooveshark, 8tracks and Hype Machine player."
  8. arch=(i686 x86_64)
  9. url="http://nuvolaplayer.fenryxo.cz"
  10. license=('GPL3')
  11. depends=('json-glib' 'intltool' 'gtk3' 'webkitgtk' 'python2' 'libnotify' 'libx11' 'libunique' 'libgee06' 'libsoup' 'gst-plugins-base' 'gst-plugins-good' 'gst-plugins-ugly')
  12. makedepends=('vala' 'scour')
  13. provides=('nuvola')
  14. conflicts=('google-musc-frame-bzr')
  15. optdepends=('gnome-shell-extension-mediaplayer-git: Gnome Shell integration' 'tsocks: Socks proxy support')
  16. replaces=('google-music-frame-bzr' 'nuvola-bzr' 'nuvola-bzr-stable' 'nuvolaplayer-beta')
  17. options=()
  18. source=(https://launchpad.net/nuvola-player/2.3.x/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz)
  19. md5sums=(63e4088c994dce39b59eb2aa23810e36)
  20. install=nuvola.install
  21.  
  22. build() {
  23.   cd "${srcdir}/${pkgname}-${pkgver}"
  24.   LDFLAGS="$LDFLAGS -ldl"
  25.   cat >./wscript.patch <<PATCHFILE
  26. --- wscript     2013-12-26 14:46:03.514419015 +0100
  27. +++ wscript.patched     2013-12-26 14:48:28.514412844 +0100
  28. @@ -450,7 +450,7 @@
  29.                 ctx.options.all_tests = True
  30.  
  31.  def post(ctx):
  32. -       if ctx.cmd == "build":
  33. +       if ctx.cmd == "build" and not ctx.options.skip_tests:
  34.                 from waflib.Tools import glibtest
  35.                 glibtest.results(ctx)
  36. PATCHFILE
  37.  
  38.   patch <wscript.patch
  39.   python2 ./waf configure --prefix=/usr --no-unity-quick-list --skip-tests --with-gstreamer=1.0
  40.   sed -i "s/ctx.env.SCOUR/'python2  \/usr\/bin\/scour'/" wscript
  41.   python2 ./waf build $MAKEFLAGS --skip-tests || return 1
  42. }
  43.  
  44. package() {
  45.   cd "${srcdir}/${pkgname}-${pkgver}"
  46.  
  47.   python2 ./waf install --destdir="${pkgdir}"
  48. }