void-packages/srcpkgs/clementine/template
Nathan Owens 462e3e40a3 clementine: revbump against libusbmuxd
Signed-off-by: Nathan Owens <ndowens04@gmail.com>
2019-11-24 13:20:08 +01:00

55 lines
2 KiB
Bash

# Template file for 'clementine'
pkgname=clementine
version=1.3.1
revision=22
_commit=75f18dab23f0842713a4200a7e362efd51b12e31
wrksrc="Clementine-${_commit}"
build_style=cmake
configure_args="-DUSE_SYSTEM_TAGLIB=ON -DBUILD_WERROR=OFF"
hostmakedepends="sparsehash pkg-config qt5-qmake qt5-host-tools protobuf"
makedepends="chromaprint-devel boost-devel gst-plugins-base1-devel liblastfm-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) libechonest-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"
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";;
*)
build_options_default="";;
esac
subpackages="$(vopt_if spotify clementine-spotify)"
pre_configure() {
sed -i 's|-Wno-unused-private-field||g' src/CMakeLists.txt ext/clementine-spotifyblob/CMakeLists.txt
sed -i 's|-Wno-unknown-warning-option||g' src/CMakeLists.txt ext/clementine-spotifyblob/CMakeLists.txt
sed -i 's|AMAZON_CLOUD_DRIVE OFF|AMAZON_CLOUD_DRIVE ON|g' CMakeLists.txt
sed -i 's;if (fs == NULL);if (!fs);' 3rdparty/libprojectm/MilkdropPresetFactory/Parser.cpp
}
post_install() {
$(vopt_if spotify rm\ -r\ $DESTDIR/builddir)
}
clementine-spotify_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - spotify extension"
repository="nonfree"
pkg_install() {
vmove usr/bin/clementine-spotifyblob
}
}