summaryrefslogtreecommitdiff
path: root/testing/sonata/PKGBUILD
blob: 17bb77c023bee312b53e5cdacb99e7de02f9204e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: PKGBUILD 168892 2012-10-16 12:14:00Z allan $
# Maintainer: Angel Velasquez <angvp@archlinux.org> 
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=sonata
pkgver=1.6.2.1
pkgrel=8
pkgdesc="Elegant GTK+ music client for MPD"
arch=('i686' 'x86_64')
url="http://sonata.berlios.de/"
license=('GPL3')
depends=('pygtk' 'python2-mpd')
optdepends=('gnome-python-extras: Enhanced system tray support'
            'tagpy: Metadata editing support'
            'python2-dbus: Various extra functionality (e.g. multimedia keys support)')
source=(http://download.berlios.de/${pkgname}/${pkgname}-$pkgver.tar.gz
        info.py.patch)
md5sums=('0b912325e7175abad3bf6c0edc071e05'
         '595fcf7615035829b264afecb5a1beeb')

build() {
  cd "$srcdir/${pkgname}-$pkgver"
  patch -Np0 -i "$srcdir/info.py.patch"
  sed -i 's|/usr/bin/env python|/usr/bin/env python2|' sonata/breadcrumbs.py
}

package() {
  cd "$srcdir/${pkgname}-$pkgver"
  python2 setup.py install --prefix=/usr --optimize 1 --root="$pkgdir"
}