#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=volti
pkgver=0.2.3
pkgrel=1rl
source=("http://volti.googlecode.com/files/volti-$pkgver.tar.gz" "volti-0.2.2-notify_body_fix.patch")
docs=("authors" "install" "readme" "copying" "changelog")
url=http://code.google.com/p/volti/
options=('noautodotnew')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"volti (GTK+ application for controlling audio volume from system tray)"
"Volti is a GTK+ application for controlling audio volume from the"
"system tray/notification area. It supports ALSA, multimedia keys on"
"the keyboard, and desktop notifications on keys events."
)

build() {
	cd $startdir/src/$pkgname-$pkgver

	patch -p1 < $startdir/src/volti-0.2.2-notify_body_fix.patch || exit 1

	python setup.py install --prefix=/usr --root=$startdir/pkg

	mkdir -p $startdir/pkg/etc/xdg/autostart
	cp $startdir/pkg/usr/share/applications/volti.desktop $startdir/pkg/etc/xdg/autostart/
	sed -i "s/Exec=volti/Exec=volti-mixer/" $startdir/pkg/usr/share/applications/volti.desktop
}