void-packages/srcpkgs/tomahawk/template
2018-03-14 12:58:27 +00:00

42 lines
1.5 KiB
Bash

# Template file for 'tomahawk'
pkgname=tomahawk
version=0.8.4
revision=11
build_style=cmake
build_options="upower hatchet xmpp"
desc_option_hatchet="Enable support for http://hatchet.is"
desc_option_xmpp="Enable support for XMPP"
build_options_default=${build_options}
configure_args="-DBUILD_RELEASE=ON \
-DTAGLIB_MIN_VERSION=1.10 \
$(vopt_if hatchet '-DBUILD_HATCHET=ON' '-DBUILD_HATCHET=OFF') \
-DBUILD_WITH_QT4=ON \
-DWITH_CRASHREPORTER=OFF
$(vopt_if upower '-DWITH_UPOWER=ON' '-DWITH_UPOWER=OFF')"
hostmakedepends="pkg-config akonadi-devel"
makedepends="boost-devel qt-devel qt-webkit-devel qjson-devel taglib-devel
sparsehash gnutls-devel qca-devel Lucene++-devel attica-devel quazip-devel
qtkeychain-devel phonon-devel liblastfm-devel libechonest-devel libressl-devel
$(vopt_if hatchet websocketpp) $(vopt_if xmpp jreen-devel)"
depends="virtual?phonon-backend qt-plugin-sqlite $(vopt_if xmpp qca-ossl)"
short_desc="Multi-source social music player"
maintainer="Duncan Overbruck <mail@duncano.de>"
license="GPL-3"
homepage="http://tomahawk-player.org/"
distfiles="http://download.tomahawk-player.org/${pkgname}-${version}.tar.bz2"
checksum=0fb04bc6b7009e17186b3d384057939727c6f289d22f7f9a5ed2c9c9cd800449
nocross=yes
post_extract() {
# fix musl build
sed -i '41a#include <sys/user.h>' src/libtomahawk/accounts/ResolverAccount.cpp
}
tomahawk-devel_package() {
depends="tomahawk>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
}
}