# Template file for 'rhythmbox'.
pkgname=rhythmbox
version=2.99
revision=1
build_style=gnu-configure
configure_args="--disable-static --disable-schemas-compile
 --with-webkit --with-gudev --without-hal --enable-vala"
hostmakedepends="which pkg-config intltool gnome-doc-utils
 itstool gobject-introspection"
makedepends="gtk+3-devel totem-pl-parser-devel libsoup-gnome-devel
 json-glib-devel libgudev-devel GConf-devel libdiscid-devel vala-devel>=0.20
 libmtp-devel>=1.1.4 avahi-glib-libs-devel libpeas-devel brasero-devel
 libnotify-devel tdb-devel>=1.2.6 libsecret-devel pygobject-devel
 gst-plugins-base1-devel webkitgtk-devel grilo-devel clutter-gst-devel
 mx-devel desktop-file-utils hicolor-icon-theme"
short_desc="GNOME integrated music management application, inspired by Apple's iTunes"
maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL-2"
homepage="http://www.rhythmbox.org"
distfiles="${GNOME_SITE}/$pkgname/2.99/$pkgname-$version.tar.xz"
checksum=5a888f6c9607c4364784469e56c245338f96da654c60a12fad3c9726388ad60a
long_desc="
 Rhythmbox is an integrated music management application, originally inspired
 by Apple's iTunes. It is free software, designed to work well under the
 GNOME Desktop, and based on the powerful GStreamer media framework.
 
 Among the many features of Rhythmbox, you will find:
 
 * Easy to use music browser
 * Searching and sorting
 * Comprehensive audio format support through GStreamer
 * Internet Radio support including last.fm streams
 * Playlists
 * Display audio visualizations
 * Transfer music to and from iPod, MTP, and USB Mass Storage music players
 * Display album art and song lyrics downloaded from the internet
 * Play, rip, and burn audio CDs
 * Automatically download audio podcasts
 * Browse, preview, and download albums from Magnatune and Jamendo"

librhythmbox_package() {
	short_desc="${short_desc} - shared library"
	pkg_install() {
		vmove "usr/lib/*.so*"
	}
}

rhythmbox-devel_package() {
	depends="gtk+3-devel librhythmbox-${version}_${revision}"
	short_desc="${short_desc} -- development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/gir-1.0
		vmove usr/share/gtk-doc
	}
}

rhythmbox_package() {
	depends="desktop-file-utils hicolor-icon-theme"
	pkg_install() {
		vmove usr
	}
}