52 lines
1.6 KiB
Bash
52 lines
1.6 KiB
Bash
# Template file for 'clementine'
|
|
pkgname=clementine
|
|
version=1.3.1
|
|
revision=27
|
|
_commit=75f18dab23f0842713a4200a7e362efd51b12e31
|
|
wrksrc="Clementine-${_commit}"
|
|
build_style=cmake
|
|
configure_args="-DUSE_SYSTEM_TAGLIB=ON -DBUILD_WERROR=OFF"
|
|
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"
|
|
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/archive/${_commit}.tar.gz"
|
|
checksum=0c29e596cb5acc6970754e3c20616c5474859b7d2e6f05f5cda5c539581e2c8a
|
|
patch_args="-Np1"
|
|
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
|
|
}
|
|
}
|