summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e1ec436079dfea1c3e8d10f097c566d52229b927 (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
31
32
33
# Maintainer: Florian Dejonckheere <florian at floriandejonckheere dot be>
# Contributor: Anton Larionov <diffident dot cat at gmail dot com>
# Contributor: Diego <cdprincipe@at@gmail@dot@com>
# Contributor: Scott Horowitz <stonecrest[at]gmail[dot]com>

_pkgname=sonata
pkgname=sonata-git
pkgver=v1.7a2.r92.g0a1d630
pkgrel=1
pkgdesc='Elegant GTK+3 music client for MPD (Git Version)'
url='https://github.com/multani/sonata'
license=('GPL3')
arch=('i686' 'x86_64')
depends=('python>=3.2' 'python-gobject>=3.7.4' 'gtk3>=3.4' 'python-mpd2>=0.4.6')
makedepends=('git')
optdepends=('python-tagpy: metadata editing support'
            'python-dbus: multimedia keys support')
conflicts=('sonata' 'sonata-svn')
provides=('sonata')
source=(git+git://github.com/multani/sonata.git)
md5sums=('SKIP')

pkgver()
{
	cd "${srcdir}/${_pkgname}"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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