diff options
author | marav <marav8@free.fr> | 2023-01-06 15:32:53 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-07 08:13:38 +0700 |
commit | f8eb8867ee26ab481e906477ac5f32302ecf2095 (patch) | |
tree | a64483ec3817969e7068a9009b5b905c3e25974a /multimedia | |
parent | ba511335449627dc41143eb3b6fb851cab915abe (diff) |
multimedia/haruna: Updated for version 0.10.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/haruna/haruna.SlackBuild | 11 | ||||
-rw-r--r-- | multimedia/haruna/haruna.info | 8 | ||||
-rw-r--r-- | multimedia/haruna/patches/recentfilemodel.patch | 30 | ||||
-rw-r--r-- | multimedia/haruna/slack-desc | 2 |
4 files changed, 45 insertions, 6 deletions
diff --git a/multimedia/haruna/haruna.SlackBuild b/multimedia/haruna/haruna.SlackBuild index e6b60e2267dad..dd69ba3bf828b 100644 --- a/multimedia/haruna/haruna.SlackBuild +++ b/multimedia/haruna/haruna.SlackBuild @@ -23,7 +23,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=haruna -VERSION=${VERSION:-0.9.3} +VERSION=${VERSION:-0.10.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -77,6 +77,15 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ +# patches +if [ -d $CWD/patches ]; then + for file in $CWD/patches/* ; do + if [ -f $file ]; then + zcat $file | patch -p1 --verbose || exit 1 + fi + done +fi + mkdir build cd build cmake \ diff --git a/multimedia/haruna/haruna.info b/multimedia/haruna/haruna.info index 914e827bcb7f2..f8ee120b5f780 100644 --- a/multimedia/haruna/haruna.info +++ b/multimedia/haruna/haruna.info @@ -1,8 +1,8 @@ PRGNAM="haruna" -VERSION="0.9.3" -HOMEPAGE="https://invent.kde.org/multimedia/haruna/" -DOWNLOAD="https://download.kde.org/stable/haruna/haruna-0.9.3.tar.xz" -MD5SUM="bb8930bb62f1eb60e2bcd1f86922e25d" +VERSION="0.10.1" +HOMEPAGE="https://apps.kde.org/haruna/" +DOWNLOAD="https://download.kde.org/stable/haruna/haruna-0.10.1.tar.xz" +MD5SUM="8326ea077ffeefd03ee26ef837811a56" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="mpv yt-dlp" diff --git a/multimedia/haruna/patches/recentfilemodel.patch b/multimedia/haruna/patches/recentfilemodel.patch new file mode 100644 index 0000000000000..03399ed7d8b51 --- /dev/null +++ b/multimedia/haruna/patches/recentfilemodel.patch @@ -0,0 +1,30 @@ +From 928c81d326ec2b9529e183cc1816484252703357 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?George=20Florea=20B=C4=83nu=C8=99?= <georgefb899@gmail.com> +Date: Fri, 6 Jan 2023 13:43:53 +0200 +Subject: [PATCH] recentfilesmodel: don't try to add files if option was + disabled (MaxRecentFiles = 0) + +BUG: 463737 +--- + src/models/recentfilesmodel.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/models/recentfilesmodel.cpp b/src/models/recentfilesmodel.cpp +index 92a94ea..be51e0e 100644 +--- a/src/models/recentfilesmodel.cpp ++++ b/src/models/recentfilesmodel.cpp +@@ -84,6 +84,10 @@ void RecentFilesModel::populate() + + void RecentFilesModel::addUrl(const QString &path, const QString &name) + { ++ if (maxRecentFiles() == 0) { ++ return; ++ } ++ + auto config = KSharedConfig::openConfig(Global::instance()->appConfigFilePath()); + QUrl url(path); + if (!url.isLocalFile() && url.scheme().isEmpty()) { +-- +GitLab + + diff --git a/multimedia/haruna/slack-desc b/multimedia/haruna/slack-desc index 729ef1b76a3b6..56792f5c1eeb6 100644 --- a/multimedia/haruna/slack-desc +++ b/multimedia/haruna/slack-desc @@ -13,7 +13,7 @@ haruna: and libmpv haruna: haruna: haruna: -haruna: Homepage: https://invent.kde.org/multimedia/haruna/ +haruna: Homepage: https://apps.kde.org/haruna/ haruna: haruna: haruna: |