updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / gnome-shell-extension-music-integration / PKGBUILD
blob1d2beaf427c3c60ffebfb079bd7d7d672564c85a
1 # Maintainer: Dongfengweixiao <dongfengweixiao@gmail.com>
2 pkgname=gnome-shell-extension-music-integration
3 pkgver=20111209
4 pkgrel=1
5 pkgdesc="Integrate your music into Gnome Shell automatically. Turn on more settings by reading the instructions on the extension homepage. "
6 arch=('i686' 'x86_64')
7 url="https://extensions.gnome.org/extension/30/music-integration/"
8 license=('GPL' 'LGPL')
9 depends=('gnome-shell-extensions-common')
10 makedepends=('git' 'gnome-common' 'intltool')
11 _gitroot="git://github.com/brianrobles204/Music-Integration.git"
12 _gitname="Music-Integration"
14 build() {
15         cd "$srcdir"
16         msg "Connecting to GIT server...."
18         if [ -d $_gitname ] ; then
19                 cd $_gitname && git pull origin
20                 msg "The local files are updated."
21         else
22                 git clone $_gitroot --depth=1
23     
24                 cd $_gitname
25                 git branch -f gnome-3-0 origin/gnome-3-0
26                 git checkout gnome-3-0
27         fi
29         msg "GIT checkout done or server timeout"
30         msg "Starting make..."
31         mkdir -p ${pkgdir}/usr/share/gnome-shell/extensions
33 package() {
34         cd ${srcdir}/${_gitname}
35         cp -rf music-integration@brianrobles204 ${pkgdir}/usr/share/gnome-shell/extensions
37 #This extension listens to Dbus MPRIS2 and automatically looks for players. It then adds an icon to the Gnome panel when it finds a music player and creates a nice notification when the song changes. You also have an option to integrate the player into the volume menu, much like in Ubuntu's setup. All these options are configurable through a nice GUI tool.
38 #Tested Players:
39 #    Banshee - with DBus Mpris plugin
40 #    Rhythmbox - with DBus Mpris plugin
41 #   Clementine
42 #   Guayadeque
43 #   Quodlibet - with DBus Mpris plugin
44 #   Google Music Frame / Nuvola
45 #Other Supported Players (may be untested or partially supported):
46 #    Amarok
47 #    Beatbox
48 #    DeaDBeeF
49 #    mpd
50 #    Pithos
51 #    Pragha
52 #    xbmc
53 #Note: Audacious is unsupported because it uses an obsolete version of MPRIS. Sorry...