diff options
-rw-r--r-- | audio/clementine/clementine.SlackBuild | 10 | ||||
-rw-r--r-- | audio/clementine/clementine.info | 6 | ||||
-rw-r--r-- | audio/clementine/sqlite.patch | 20 |
3 files changed, 29 insertions, 7 deletions
diff --git a/audio/clementine/clementine.SlackBuild b/audio/clementine/clementine.SlackBuild index 876fcbb699..ce0616ccaf 100644 --- a/audio/clementine/clementine.SlackBuild +++ b/audio/clementine/clementine.SlackBuild @@ -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 \ diff --git a/audio/clementine/clementine.info b/audio/clementine/clementine.info index 0fe19ad952..96e46e02fc 100644 --- a/audio/clementine/clementine.info +++ b/audio/clementine/clementine.info @@ -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" diff --git a/audio/clementine/sqlite.patch b/audio/clementine/sqlite.patch new file mode 100644 index 0000000000..7f13e6109c --- /dev/null +++ b/audio/clementine/sqlite.patch @@ -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( + |