mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
audio/clementine: Updated for version 1.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
05b5229713
commit
6ba759aeee
3 changed files with 29 additions and 7 deletions
|
@ -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 \
|
||||
|
|
|
@ -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"
|
||||
|
|
20
audio/clementine/sqlite.patch
Normal file
20
audio/clementine/sqlite.patch
Normal 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(
|
||||
|
Loading…
Reference in a new issue