audio/clementine: Updated for version 1.3.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-04-17 16:34:39 +07:00
parent 05b5229713
commit 6ba759aeee
3 changed files with 29 additions and 7 deletions

View file

@ -25,7 +25,8 @@
# Modified by SlackBuilds.org
PRGNAM=clementine
VERSION=${VERSION:-20151123_136c980}
DIRNAM=Clementine
VERSION=${VERSION:-1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -61,9 +62,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
rm -rf $DIRNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
cd $DIRNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -71,6 +72,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -p1 < $CWD/sqlite.patch
mkdir build
cd build
cmake \

View file

@ -1,8 +1,8 @@
PRGNAM="clementine"
VERSION="20151123_136c980"
VERSION="1.3"
HOMEPAGE="http://www.clementine-player.org/"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/clementine-20151123_136c980.tar.xz"
MD5SUM="a131a4629debfca22950885aa8c06925"
DOWNLOAD="https://github.com/clementine-player/Clementine/archive/1.3.tar.gz"
MD5SUM="8704ee6e8e508fee374c5697b7d75a96"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="chromaprint cryptopp libechonest protobuf"

View file

@ -0,0 +1,20 @@
--- a/src/core/database.cpp
+++ b/src/core/database.cpp
@@ -265,6 +265,16 @@
StaticInit();
{
+#ifdef SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER
+ QVariant v = db.driver()->handle();
+ if (v.isValid() && qstrcmp(v.typeName(), "sqlite3*") == 0) {
+ sqlite3* handle = *static_cast<sqlite3**>(v.data());
+ if (handle) {
+ sqlite3_db_config(handle, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, NULL);
+ }
+ }
+#endif
+
QSqlQuery set_fts_tokenizer("SELECT fts3_tokenizer(:name, :pointer)", db);
set_fts_tokenizer.bindValue(":name", "unicode");
set_fts_tokenizer.bindValue(