void-packages/srcpkgs/clementine/template
2022-02-23 00:05:46 -05:00

50 lines
1.7 KiB
Bash

# Template file for 'clementine'
pkgname=clementine
version=1.4.0rc1
revision=7
_fullver=$version-343-gb49afcc5b
wrksrc=${pkgname}-${_fullver}
build_style=cmake
configure_args="-DUSE_SYSTEM_TAGLIB=ON -DBUILD_WERROR=OFF -DUSE_SYSTEM_PROJECTM=ON"
hostmakedepends="gettext sparsehash pkg-config qt5-qmake qt5-host-tools protobuf"
makedepends="chromaprint-devel boost-devel 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 $(vopt_if spotify libspotify-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 libechonest-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}/${pkgname}-${_fullver}.tar.xz"
checksum=e1fa2482b81336282a36a5451a0217c274e5b45aa3eeed83fe3fd29a5df59397
build_options="spotify"
case "$XBPS_TARGET_MACHINE" in
x86_64 | i686 | armv7l)
build_options_default="spotify";;
*)
if [ "$build_option_spotify" ]; then
broken="no spotify blob"
fi
;;
esac
subpackages="$(vopt_if spotify clementine-spotify)"
post_install() {
rm -rf $DESTDIR/builddir
}
clementine-spotify_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - spotify extension"
license="Apache-2.0"
repository="nonfree"
pkg_install() {
vmove usr/bin/clementine-spotifyblob
}
}