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

pkgname=quodlibet
pkgver=2.2
pkgrel=2gv
arch=i486
source=(http://quodlibet.googlecode.com/files/quodlibet-$pkgver.tar.gz)
docs=("authors" "install" "readme" "copying" "hacking")
url=http://code.google.com/p/quodlibet/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"quodlibet (audio library tagger, manager and player in GTK+)"
"Quod Libet is a GTK+-based audio player written in Python, using the"
"Mutagen tagging library. It's designed around the idea that you know"
"how to organize your music better than we do. It lets you make"
"playlists based on regular expressions (don't worry, regular searches"
"work too). It lets you display and edit any tags you want in the file."
"And it lets you do this for all the file formats it supports -- Ogg"
"Vorbis, FLAC, MP3, Musepack, and MOD."
)

build() {
	cd $startdir/src/$pkgname-$pkgver
	python setup.py install --prefix=/usr --root=$startdir/pkg
	sed -i "s/Icon=\(.*\)\.png/Icon=\1/" $startdir/pkg/usr/share/applications/*.desktop
	
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/scalable/apps
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/64x64/apps
	cp $startdir/src/$pkgname-$pkgver/quodlibet/images/quodlibet.svg $startdir/pkg/usr/share/icons/hicolor/scalable/apps/
	cp $startdir/src/$pkgname-$pkgver/quodlibet/images/exfalso.svg $startdir/pkg/usr/share/icons/hicolor/scalable/apps/
	cp $startdir/src/$pkgname-$pkgver/quodlibet/images/quodlibet.png $startdir/pkg/usr/share/icons/hicolor/64x64/apps/
	cp $startdir/src/$pkgname-$pkgver/quodlibet/images/exfalso.png $startdir/pkg/usr/share/icons/hicolor/64x64/apps/
}