Advertisement
Peaceseeker

Rhythmbox 3.0.1 power manager fixes PKGBUILD

Oct 29th, 2013
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. # $Id$
  2. # Maintainer: Jan de Groot <jgc@archlinux.org>
  3. # Contributor: Giovanni Scafora <giovanni@archlinux.org>
  4.  
  5. pkgname=rhythmbox
  6. pkgver=3.0.1
  7. pkgrel=1
  8. pkgdesc="An iTunes-like music playback and management application"
  9. arch=(i686 x86_64)
  10. license=(GPL)
  11. url="http://www.rhythmbox.org"
  12. depends=(dconf desktop-file-utils gst-plugins-base gst-plugins-good libsoup json-glib libnotify libpeas media-player-info totem-plparser tdb webkitgtk3 python-gobject gnome-icon-theme)
  13. makedepends=(itstool intltool brasero gobject-introspection vala grilo libdmapsharing lirc-utils libgpod libmtp)
  14. optdepends=('gst-plugins-ugly: Extra media codecs'
  15. 'gst-plugins-bad: Extra media codecs'
  16. 'gst-libav: Extra media codecs'
  17. 'brasero: Audio CD Recorder plugin'
  18. 'libdmapsharing: DAAP Music Sharing plugin'
  19. 'grilo-plugins: Grilo media browser plugin'
  20. 'lirc-utils: LIRC plugin'
  21. 'libgpod: Portable Players - iPod plugin'
  22. 'libmtp: Portable Players - MTP plugin'
  23. 'zeitgeist: Zeitgeist plugin')
  24. options=('!libtool' '!emptydirs')
  25. install=rhythmbox.install
  26. source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver::3}/$pkgname-$pkgver.tar.xz)
  27. sha256sums=('75072b093284e9f5696fbb590d719a9e16340a5a91d73e3ccd876ce21329bdcf')
  28.  
  29. build() {
  30.  
  31. # show 'power-manager plugin' in plugin list
  32. sed -i -e "s|Builtin=true|Builtin=false|" \
  33. $(find . -name 'power-manager.plugin.in')
  34.  
  35. # fix inhibit function
  36. sed -i -e "s|GTK_APPLICATION_INHIBIT_IDLE|GTK_APPLICATION_INHIBIT_SUSPEND|" \
  37. $(find . -name 'rb-power-manager-plugin.c')
  38.  
  39. cd "$pkgname-$pkgver"
  40. ./configure --prefix=/usr --sysconfdir=/etc \
  41. --libexecdir=/usr/lib/rhythmbox \
  42. --localstatedir=/var --disable-static \
  43. --enable-daap --enable-python --enable-vala --without-power-manager
  44. make
  45. }
  46.  
  47. package() {
  48. cd "$pkgname-$pkgver"
  49. make DESTDIR="$pkgdir" install
  50. rm -r "$pkgdir/usr/lib/rhythmbox/sample-plugins"
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement