void-packages/srcpkgs/tomahawk/template

59 lines
2.0 KiB
Bash

# Template file for 'tomahawk'
pkgname=tomahawk
version=0.8.4
revision=17
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="xmpp upower"
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-devel sparsehash taglib-devel vlc-devel libsecret-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
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake"
fi
tomahawk-devel_package() {
depends="tomahawk>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
}
}
tomahawk-qt5_package() {
build_style=meta
short_desc+=" (transitional dummy package)"
depends="tomahawk>=${version}_${revision}"
}
tomahawk-qt5-devel_package() {
build_style=meta
short_desc+=" (transitional dummy package)"
depends="tomahawk-devel>=${version}_${revision}"
}