updated on Tue Jan 24 00:00:24 UTC 2012
[aur-mirror.git] / indimpc_gnome-shell / PKGBUILD
blob89407850a900a92f7b188059d8d25ee9142f1d52
1 # Author: Felipe Morales <hel.sheep@gmail.com>
2 # Maintainer: Felipe Morales <hel.sheep@gmail.com>
3 pkgname=indimpc_gnome-shell
4 pkgver=20110706
5 pkgrel=2
6 pkgdesc="Minimalistic MPD client with support for multimedia keys and notifications (with gnome-shell integration)"
7 arch=(any)
8 url="https://github.com/fmoralesc/indimpc"
9 license=("GPL")
10 depends=("dbus-python" "python-notify" "python-mpd")
11 install=${pkgname}.install
13 _gitroot="git://github.com/fmoralesc/indimpc.git"
14 _gitname="indimpc"
15 _gitbranch="gnome-shell"
17 build() {
18   cd "$srcdir"
20   msg "Updating source code..."
21   if [[ -d $_gitname ]]; then
22     cd "$_gitname" && git pull origin 
23   else
24     git clone "$_gitroot" "$_gitname" -b "$_gitbranch$" --depth=1
25   fi
28 package() {
29   cd "$srcdir/$_gitname"
30   install -Dm0755 "indimpc.py" "$pkgdir/usr/bin/indimpc"
31   install -Dm0755 "indimpc.desktop" "$pkgdir/etc/xdg/autostart/indimpc.desktop"
32   install -Dm0644 "indimpc.rc" "$pkgdir/usr/share/doc/indimpc/indimpc.rc"
33   install -Dm0644 "guake.patch" "$pkgdir/usr/share/doc/indimpc/guake.patch"