#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>
#Previous packager: Thorsten Muehlfelder <thenktor(at)gmx.de>

pkgname=exaile
pkgver=3.3.0
pkgrel=1rl
source=("https://launchpad.net/exaile/3.3.x/3.3.0/+download/exaile-3.3.0.tar.gz")
docs=('copying' 'changelog' 'todo' 'license.txt')
options=('noautodotnew')
url="http://www.exaile.org/"
# extradeps: dbus-python,gstreamer,gst-plugins-base,gst-plugins-good,gst-python,mutagen,notify-python,pycairo,pygobject,pygtk,python

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (GTK+ music player similar to Amarok)"
"Exaile is a music player aiming to be similar to KDE's Amarok, but for"
"GTK+ and written in Python. It incorporates many of the cool things"
"from Amarok (and other media players) like automatic fetching of album"
"art, handling of large libraries, lyrics fetching, artist/album"
"information via Wikipedia, Last.fm submission support, and optional"
"iPod support via a plugin."
)

build() {
	cd $startdir/src/exaile-$pkgver
	make -j $numjobs || return 1
	make PREFIX=/usr LIBINSTALLDIR=/lib${LIBDIRSUFFIX} DESTDIR=$startdir/pkg install || return 1
	# create icons
	if [ -e "$startdir/pkg/usr/share/icons/hicolor/48x48/apps" ]; then
		echo "perhaps icons already exists?"
		return 1
	fi
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps || return 1
	cp data/images/48x48/exaile.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/exaile.png || return 1
}