updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / indimpc / PKGBUILD
blobf211690dc6b1def357e8cde2eeb208a4c19b3ec1
1 # Author: Felipe Morales <hel.sheep@gmail.com>
2 # Maintainer: <grawity@gmail.com>
3 pkgname=indimpc
4 pkgver=1
5 pkgrel=1
6 pkgdesc="Minimalistic MPD client with support for multimedia keys and notifications"
7 arch=(any)
8 url="https://github.com/fmoralesc/indimpc"
9 license=("GPL")
10 depends=("python-dbus" "python-notify" "python-mpd")
12 _gitroot="git://github.com/fmoralesc/indimpc.git"
13 _gitname="indimpc"
15 build() {
16   cd "$srcdir"
18   msg "Updating source code..."
19   if [[ -d $_gitname ]]; then
20     cd "$_gitname" && git pull origin
21   else
22     git clone "$_gitroot" "$_gitname"
23   fi
26 package() {
27   cd "$srcdir/$_gitname"
28   install -Dm0755 "indimpc.py" "$pkgdir/usr/bin/indimpc"
29   install -Dm0755 "$srcdir/indimpc.desktop" "$pkgdir/etc/xdg/autostart/indimpc.desktop"