# Template file for 'io.elementary.music'
pkgname=io.elementary.music
version=5.0.5
revision=1
wrksrc="music-${version}"
build_style=meson
configure_args="-Dbuild-plugins=true -Dplugins=audioplayer,cdrom,ipod"
hostmakedepends="vala desktop-file-utils intltool pkg-config AppStream glib-devel"
makedepends="taglib-devel granite-devel vala-devel gtk+3-devel libgee08-devel
 clutter-gtk-devel dbus-glib-devel libgda-devel libgpod-devel libxml2-devel
 json-glib-devel libnotify-devel libsoup-devel zeitgeist-devel libpeas-devel"
short_desc="Music player and library designed for elementary OS"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/elementary/music"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=ed7cba3b07189273890b321b21cda198f18b102e4466eb7207c0b5f27b31dfc9

libio.elementary.music_package() {
	short_desc+=" - library"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}
libio.elementary.music-devel_package() {
	short_desc+=" - library development files"
	depends="libio.elementary.music>=${version} granite-devel
	 gst-plugins-base1-devel gstreamer1-devel gtk+3-devel libglib-devel
	 libpeas-devel"
	pkg_install() {
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
		vmove usr/include
		vmove usr/share/vala
	}
}
