void-packages/srcpkgs/tomahawk-qt5/template

51 lines
1.9 KiB
Bash

# Template file for 'tomahawk'
pkgname=tomahawk-qt5
version=0.8.4
revision=14
wrksrc=${pkgname%-*}-${_commit}
_commit=00f602e10203b76fc28b4615868c567e6bd4ced4
build_style=cmake
build_options="upower hatchet kde xmpp"
desc_option_hatchet="Enable support for http://hatchet.is"
desc_option_kde="Enable support for KDE"
desc_option_xmpp="Enable support for XMPP"
build_options_default=${build_options}
configure_args="-Wno-dev -DBUILD_RELEASE=ON \
$(vopt_if hatchet '-DBUILD_HATCHET=ON' '-DBUILD_HATCHET=OFF') \
-DBUILD_WITH_QT4=OFF \
-DWITH_CRASHREPORTER=OFF \
-DTAGLIB_MIN_VERSION=1.10 \
$(vopt_if kde '-DWITH_KDE4=ON' '-DWITH_KDE4=OFF') \
$(vopt_if upower '-DWITH_UPOWER=ON' '-DWITH_UPOWER=OFF')"
hostmakedepends="pkg-config extra-cmake-modules"
makedepends="Lucene++-devel attica-qt5-devel boost-devel gnutls-devel
libechonest-qt5-devel liblastfm-qt5-devel phonon-qt5-devel qca-qt5-devel
qt5-svg-devel qt5-tools-devel qt5-webkit-devel qtkeychain-qt5-devel
quazip-qt5-devel sparsehash taglib-devel vlc-devel $(vopt_if hatchet websocketpp)
$(vopt_if xmpp jreen-qt5-devel) $(vopt_if kde telepathy-qt5-devel)"
depends="virtual?phonon-qt5-backend qt5-plugin-sqlite $(vopt_if xmpp qca-qt5-ossl)"
short_desc="Multi-source social music player"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="GPL-3.0-or-later"
homepage="https://tomahawk-player.org/"
distfiles="https://github.com/tomahawk-player/tomahawk/archive/${_commit}.tar.gz"
checksum=f93d36b246944657dcef98ff71410db8630c53b5565dc283fb15f57e5b301f79
provides="tomahawk-${version}_${revision}"
replaces="tomahawk>=0"
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake"
fi
tomahawk-qt5-devel_package() {
depends="tomahawk-qt5>=${version}_${revision}"
short_desc+=" - development files"
provides="tomahawk-devel-${version}_${revision}"
replaces="tomahawk-devel>=0"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
}
}