# Template file for 'rhythmbox'.
pkgname=rhythmbox
version=3.0.3
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"
makedepends="gtk+3-devel libsoup-gnome-devel>=2.44 totem-pl-parser-devel>=3.10
 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>=3.8.0_3
 libnotify-devel tdb-devel>=1.2.6 libsecret-devel pygobject-devel libSM-devel
 webkitgtk-devel>=2.1 grilo-devel gst-plugins-base1-devel>=1:1.2 clutter-gtk-devel>=1.4.4_2
 python3-devel pygobject-devel libdmapsharing-devel>=2.9.17 gobject-introspection
 desktop-file-utils hicolor-icon-theme"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="GNOME integrated music management application, inspired by Apple's iTunes"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://www.rhythmbox.org"
distfiles="${GNOME_SITE}/$pkgname/3.0/$pkgname-$version.tar.xz"
checksum=fa967c27771af20c71e9992581acb0e19325c839f71c464b8e1cd5ac3a16dd80

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

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