70 lines
2.2 KiB
Bash
70 lines
2.2 KiB
Bash
# Template file for 'tomahawk'
|
|
pkgname=tomahawk
|
|
version=0.8.4
|
|
revision=21
|
|
wrksrc=${pkgname}-${_commit}
|
|
_commit=90ec6f0dc701cba0533c66abdcb904e29f02a66f
|
|
build_style=cmake
|
|
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
|
|
$(vopt_if hatchet websocketpp) $(vopt_if xmpp jreen-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.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://tomahawk-player.org/"
|
|
distfiles="https://github.com/tomahawk-player/tomahawk/archive/${_commit}.tar.gz"
|
|
checksum=3305a8221af1bfa51cbf5256abf8ab3824393b684ce428a3c46409cf5e1d3fce
|
|
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"
|
|
patch_args=-Np0
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-host-tools qt5-qmake"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
CXXFLAGS="-Wno-deprecated-declarations"
|
|
|
|
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}"
|
|
}
|