# Template file for 'clementine'
pkgname=clementine
version=1.4.1
revision=3
_fullver=${version}-35-g400085808
build_style=cmake
configure_args="-DUSE_SYSTEM_TAGLIB=ON -DBUILD_WERROR=OFF -DUSE_SYSTEM_PROJECTM=ON
 -DFORCE_GIT_REVISION=${_fullver} -DCMAKE_CXX_STANDARD=17"
hostmakedepends="gettext sparsehash pkg-config qt5-qmake qt5-host-tools protobuf"
makedepends="chromaprint-devel boost-headers gst-plugins-base1-devel
 qt5-devel glew-devel sqlite-devel protobuf-devel libplist-devel
 libusbmuxd-devel libmtp-devel libcdio-devel pulseaudio-devel glu-devel
 taglib-devel crypto++-devel libgpod-devel libmygpo-qt-devel
 qt5-x11extras-devel qt5-plugin-mysql qt5-plugin-pgsql qt5-plugin-sqlite
 qt5-plugin-tds qt5-plugin-odbc qt5-tools-devel liblastfm-qt5-devel
 projectM-devel"
depends="desktop-file-utils"
short_desc="Modern music player and library organizer"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-3.0-or-later"
homepage="https://www.clementine-player.org/"
distfiles="https://github.com/clementine-player/Clementine/releases/download/${_fullver}/clementine-${_fullver}.tar.xz"
checksum=6333035fd48899768132815cbb6edf3277d247e82d78b74bb505b58baeace84f

case "$XBPS_TARGET_MACHINE" in
	*-musl)
		configure_args+=" -DCMAKE_EXE_LINKER_FLAGS='-lexecinfo'"
		makedepends+=" libexecinfo-devel"
		;;
esac

post_install() {
	rm -rf $DESTDIR/builddir
}
