diff --git a/srcpkgs/tomahawk-qt5/patches/cross-musl.patch b/srcpkgs/tomahawk-qt5/patches/cross-musl.patch
deleted file mode 100644
index 65a08da0309..00000000000
--- a/srcpkgs/tomahawk-qt5/patches/cross-musl.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- src/libtomahawk/accounts/ResolverAccount.cpp 2016-11-08 20:50:59.907398017 +0100
-+++ src/libtomahawk/accounts/ResolverAccount.cpp 2016-11-08 20:56:33.222289769 +0100
-@@ -16,6 +16,9 @@
- * You should have received a copy of the GNU General Public License
- * along with Tomahawk. If not, see .
- */
-+#if !defined(__GLIBC__)
-+#include
-+#endif
-
- #include "ResolverAccount.h"
-
-@@ -185,10 +185,17 @@
- #elif defined( Q_OS_MAC )
- myPlatform = "osx";
- #elif defined( Q_OS_LINUX )
-+#if defined(__GLIBC__)
- if ( __WORDSIZE == 32 )
- myPlatform = "linux-x86";
- else if ( __WORDSIZE == 64 )
- myPlatform = "linux-x64";
-+#else
-+ if ( __WORDSIZE == 32 )
-+ myPlatform = "linux-musl-x86";
-+ else if ( __WORDSIZE == 64 )
-+ myPlatform = "linux-musl-x64";
-+#endif
- #endif
-
- if ( !myPlatform.contains( platform ) )
diff --git a/srcpkgs/tomahawk-qt5/patches/musl.patch b/srcpkgs/tomahawk-qt5/patches/musl.patch
new file mode 100644
index 00000000000..1f967ef46f6
--- /dev/null
+++ b/srcpkgs/tomahawk-qt5/patches/musl.patch
@@ -0,0 +1,20 @@
+--- src/libtomahawk/accounts/ResolverAccount.cpp.orig
++++ src/libtomahawk/accounts/ResolverAccount.cpp
+@@ -44,6 +44,17 @@
+ #include
+ #include
+
++#include
++
++#ifndef __WORDSIZE
++# if ULONG_MAX == 0xffffffffffffffff
++# define __WORDSIZE 64
++# elif ULONG_MAX == 0xffffffff
++# define __WORDSIZE 32
++# endif /* ULONG_MAX */
++#endif /* __WORDSIZE */
++
++
+ #define MANUALRESOLVERS_DIR "manualresolvers"
+
+ using namespace Tomahawk;
diff --git a/srcpkgs/tomahawk-qt5/template b/srcpkgs/tomahawk-qt5/template
index a62d12ed6c4..f0f9501ede6 100644
--- a/srcpkgs/tomahawk-qt5/template
+++ b/srcpkgs/tomahawk-qt5/template
@@ -1,7 +1,7 @@
# Template file for 'tomahawk'
pkgname=tomahawk-qt5
version=0.8.4
-revision=9
+revision=10
wrksrc=${pkgname%-*}-${version}
build_style=cmake
build_options="upower hatchet kde xmpp"
@@ -9,7 +9,7 @@ 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="-DBUILD_RELEASE=ON \
+configure_args="-Wno-dev -DBUILD_RELEASE=ON \
$(vopt_if hatchet '-DBUILD_HATCHET=ON' '-DBUILD_HATCHET=OFF') \
-DBUILD_WITH_QT4=OFF \
-DWITH_CRASHREPORTER=OFF \
@@ -22,8 +22,7 @@ makedepends="boost-devel Lucene++-devel qt5-devel taglib-devel sparsehash
qt5-svg-devel qt5-tools-devel phonon-qt5-devel liblastfm-qt5-devel quazip-qt5-devel
libechonest-qt5-devel libressl-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)
- qca-qt5 quazip-qt5"
+depends="virtual?phonon-qt5-backend qt5-plugin-sqlite $(vopt_if xmpp qca-qt5-ossl)"
short_desc="Multi-source social music player"
maintainer="Duncaen "
license="GPL-3"
@@ -54,6 +53,15 @@ post_extract() {
src/libtomahawk/EchonestCatalogSynchronizer.h \
src/infoplugins/generic/echonest/EchonestPlugin.cpp \
src/infoplugins/generic/echonest/EchonestPlugin.h
+ # fix quazip-qt5 detection
+ sed -i CMakeModules/FindQuaZip.cmake \
+ -e 's|quazip/quazip.h|quazip5/quazip.h|' \
+ -e '/^find_library/s|quazip|&5|'
+ sed -i 's|#include ' src/libtomahawk/network/acl/AclRegistry.cpp
sed -i '30a#include ' src/libtomahawk/utils/TomahawkCache.h