aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2018-12-28 16:10:11 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2018-12-28 16:10:11 +0000
commite0f5f83fce5416b0fe8c8030cba7510b11f35f2c (patch)
treed4da9331b11b8868bba9b68bee3e2e2eadce27bf /unmaintained
parenta0ee2862670faefb2926e275237e5e60ecbe75ba (diff)
downloadaports-e0f5f83fce5416b0fe8c8030cba7510b11f35f2c.tar.bz2
aports-e0f5f83fce5416b0fe8c8030cba7510b11f35f2c.tar.xz
community/tomahawk: move to unmaintained
project is abandoned
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/tomahawk/APKBUILD49
-rw-r--r--unmaintained/tomahawk/compare-taglib-version.patch35
-rw-r--r--unmaintained/tomahawk/musl-fixes.patch20
-rw-r--r--unmaintained/tomahawk/qtkeychain.patch13
4 files changed, 117 insertions, 0 deletions
diff --git a/unmaintained/tomahawk/APKBUILD b/unmaintained/tomahawk/APKBUILD
new file mode 100644
index 0000000000..dfdebc128a
--- /dev/null
+++ b/unmaintained/tomahawk/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=tomahawk
+pkgver=0.8.4
+pkgrel=9
+pkgdesc="A Music Player App written in C++/Qt"
+url="http://tomahawk-player.org/"
+arch="all"
+license="GPL-3.0"
+options="!check" #upstream does not provide check
+depends="phonon-backend-gstreamer qt-sqlite"
+makedepends="cmake sparsehash websocket++ automoc4
+ linux-headers bsd-compat-headers
+ qt-dev phonon-dev boost-dev gnutls-dev
+ libechonest-dev lucene++-dev taglib-dev
+ qca-dev attica-dev quazip-dev
+ liblastfm-dev qtkeychain-dev jreen-dev"
+subpackages="$pkgname-dev"
+source="http://download.tomahawk-player.org/tomahawk-$pkgver.tar.bz2
+ musl-fixes.patch
+ compare-taglib-version.patch
+ qtkeychain.patch
+ "
+builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ default_prepare
+ mkdir -p "$builddir"/build
+}
+
+build() {
+ cd "$builddir"/build
+ cmake "$builddir" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_INSTALL_LIBEXECDIR=lib/${pkgname} \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=Release
+}
+
+package() {
+ cd "$builddir"/build
+ make DESTDIR=${pkgdir} install
+}
+
+sha512sums="5b312f593eac39d06de05e24d4ce429122d0777a9d52d6db8c65309ac283d7ae560c2fc189b186f0f8b1a7bbe1135ed0d59e1d850de6a93655e53efe4f5317c7 tomahawk-0.8.4.tar.bz2
+eaf3a13d6e664999820aa562921462ca51e3abea464fd4fba3864ac9cac723b13fa5d349feea88a4c44356348bab127dda0899fb6335e610a8e4f5172d55b1d9 musl-fixes.patch
+a09e7d4e9bc684ca51714795716dd1756e490c2824371824313f53b0f0008c5fcfe95bceefd237d8d9c2b553760639848251770140739bc401b77a2b4e44c77c compare-taglib-version.patch
+8042084030a624dc2eea4e4ef79259f7f25858a62b39dda3b795aff0c330e25dc936d00a7a395a6cb6e9c3e347be7bf0aa077c1ca108aeb0a423dbe90933f213 qtkeychain.patch"
diff --git a/unmaintained/tomahawk/compare-taglib-version.patch b/unmaintained/tomahawk/compare-taglib-version.patch
new file mode 100644
index 0000000000..ff8622536c
--- /dev/null
+++ b/unmaintained/tomahawk/compare-taglib-version.patch
@@ -0,0 +1,35 @@
+From ee4656383a92a78299aff6f8637f174fff328e98 Mon Sep 17 00:00:00 2001
+From: Pinak Ahuja <pinak.ahuja@gmail.com>
+Date: Wed, 2 Sep 2015 14:41:00 +0530
+Subject: [PATCH] Compare taglib version properly
+
+---
+ CMakeModules/FindTaglib.cmake | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/CMakeModules/FindTaglib.cmake b/CMakeModules/FindTaglib.cmake
+index e0efbef..f54ff78 100644
+--- a/CMakeModules/FindTaglib.cmake
++++ b/CMakeModules/FindTaglib.cmake
+@@ -34,10 +34,10 @@ ELSE()
+
+ exec_program(${TAGLIBCONFIG_EXECUTABLE} ARGS --version RETURN_VALUE _return_VALUE OUTPUT_VARIABLE TAGLIB_VERSION)
+
+- if(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
++ if(TAGLIB_VERSION VERSION_LESS "${TAGLIB_MIN_VERSION}")
+ message(STATUS "TagLib version not found: version searched :${TAGLIB_MIN_VERSION}, found ${TAGLIB_VERSION}")
+ set(TAGLIB_FOUND FALSE)
+- else(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
++ else(TAGLIB_VERSION VERSION_LESS "${TAGLIB_MIN_VERSION}")
+
+ exec_program(${TAGLIBCONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE TAGLIB_LIBRARIES)
+
+@@ -48,7 +48,7 @@ ELSE()
+ # message(STATUS "Found taglib: ${TAGLIB_LIBRARIES}")
+ endif(TAGLIB_LIBRARIES AND TAGLIB_CFLAGS)
+ string(REGEX REPLACE " *-I" ";" TAGLIB_INCLUDES "${TAGLIB_CFLAGS}")
+- endif(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
++ endif(TAGLIB_VERSION VERSION_LESS "${TAGLIB_MIN_VERSION}")
+ mark_as_advanced(TAGLIB_CFLAGS TAGLIB_LIBRARIES TAGLIB_INCLUDES)
+
+ else(TAGLIBCONFIG_EXECUTABLE)
diff --git a/unmaintained/tomahawk/musl-fixes.patch b/unmaintained/tomahawk/musl-fixes.patch
new file mode 100644
index 0000000000..78f72248d7
--- /dev/null
+++ b/unmaintained/tomahawk/musl-fixes.patch
@@ -0,0 +1,20 @@
+--- ./src/libtomahawk/accounts/ResolverAccount.cpp.orig
++++ ./src/libtomahawk/accounts/ResolverAccount.cpp
+@@ -44,6 +44,17 @@
+ #include <QFileInfo>
+ #include <QDir>
+
++#include <limits.h>
++
++#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/unmaintained/tomahawk/qtkeychain.patch b/unmaintained/tomahawk/qtkeychain.patch
new file mode 100644
index 0000000000..bb9666af39
--- /dev/null
+++ b/unmaintained/tomahawk/qtkeychain.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3180626..102b8c8 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -324,7 +324,7 @@ if( TOMAHAWK_QT5 )
+ else()
+ macro_optional_find_package(QtKeychain 0.1.0)
+ endif()
+-macro_log_feature(QTKEYCHAIN_FOUND "QtKeychain" "Provides support for secure credentials storage" "https://github.com/frankosterfeld/qtkeychain" TRUE "" "")
++macro_log_feature(QtKeychain_FOUND "QtKeychain" "Provides support for secure credentials storage" "https://github.com/frankosterfeld/qtkeychain" TRUE "" "")
+ endif()
+
+ if( UNIX AND NOT APPLE )