# Template file for 'clementine'
pkgname=clementine
version=1.2.3
revision=2
build_style=cmake
hostmakedepends="git cmake sparsehash pkg-config"
makedepends="chromaprint-devel boost-devel gst-plugins-base-devel liblastfm-devel
 qt-devel glew-devel qjson-devel sqlite-devel protobuf-devel libplist-devel
 libusbmuxd-devel libmtp-devel libcdio-devel qca-devel pulseaudio-devel glu-devel
 taglib-devel"
depends="desktop-file-utils"
short_desc="A modern music player and library organizer"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="https://www.clementine-player.org/"

do_fetch() {
	local url="git://github.com/clementine-player/Clementine"
	msg_normal "Fetching source from $url ...\n"
	git clone --branch ${version} ${url} ${wrksrc}
	cd ${wrksrc}
	git config user.email "one@two.com"
	git config user.name "oh my gold"
	git cherry-pick ec580cb815c16ec1ab43a469d5af7d51d8d03082 # No namespaces for DBus interfaces. Fixes issue n4401
}
