git » amarok.git » commit 4cee59e

Removing DBusActivatable=true to make shortcut works as expected.

author Fredy García
2023-06-29 17:43:46 UTC
committer Fredy García
2023-06-29 17:43:46 UTC
parent 79b016da70d65dd42e460b52e7ba4443029693a7

Removing DBusActivatable=true to make shortcut works as expected.

.SRCINFO +3 -1
PKGBUILD +6 -1
desktop_remove_busactivatable.patch +11 -0

diff --git a/.SRCINFO b/.SRCINFO
index c6cb76b..1bcf561 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = amarok
 	pkgdesc = The powerful music player for KDE
 	pkgver = 2.9.71
-	pkgrel = 2
+	pkgrel = 3
 	url = http://amarok.kde.org/
 	arch = x86_64
 	license = FDL
@@ -30,8 +30,10 @@ pkgbase = amarok
 	optdepends = ifuse: support for Apple iPod Touch and iPhone
 	optdepends = loudmouth: backend needed by mp3tunes for syncing
 	source = https://download.kde.org/unstable/amarok/2.9.71/amarok-2.9.71.tar.xz
+	source = desktop_remove_busactivatable.patch
 	source = ffmpeg5_cmakelist_configure.patch::https://invent.kde.org/multimedia/amarok/-/merge_requests/45.diff
 	sha256sums = 6a404829d336f69415fb6bb4ea1d5566759fb95e3e84f904ee9ef82a7be4e84f
+	sha256sums = 92083012e10b0fae50f0caa2ef198f085f97d5856796fc9ef36d699b555353ed
 	sha256sums = 77a1f8cbc7f786e5616fbb5922dcf193614dbdf2a1d3fa2b2196c3fdb2f0387b
 
 pkgname = amarok
diff --git a/PKGBUILD b/PKGBUILD
index d698de0..ae87de2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
 
 pkgname=amarok
 pkgver=2.9.71
-pkgrel=2
+pkgrel=3
 pkgdesc="The powerful music player for KDE"
 arch=("x86_64")
 url="http://${pkgname}.kde.org/"
@@ -19,16 +19,21 @@ optdepends=(
 )
 source=(
   "https://download.kde.org/unstable/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz"
+  "desktop_remove_busactivatable.patch"
   "ffmpeg5_cmakelist_configure.patch::https://invent.kde.org/multimedia/amarok/-/merge_requests/45.diff"
 )
 sha256sums=(
   "6a404829d336f69415fb6bb4ea1d5566759fb95e3e84f904ee9ef82a7be4e84f"
+  "92083012e10b0fae50f0caa2ef198f085f97d5856796fc9ef36d699b555353ed"
   "77a1f8cbc7f786e5616fbb5922dcf193614dbdf2a1d3fa2b2196c3fdb2f0387b"
 )
 
 prepare() {
   cd "${srcdir}/${pkgname}-${pkgver}"
 
+  # Patching to remove DBusActivatable=true to make shortcut works as expected
+  patch -Np1 -i "${srcdir}/desktop_remove_busactivatable.patch"
+
   # Patching to fix FFMPEG5 and CMakeLists bug with config.h definition position https://invent.kde.org/multimedia/amarok/-/merge_requests/45
   patch -Np1 -i "${srcdir}/ffmpeg5_cmakelist_configure.patch"
 
diff --git a/desktop_remove_busactivatable.patch b/desktop_remove_busactivatable.patch
new file mode 100644
index 0000000..b99b8c0
--- /dev/null
+++ b/desktop_remove_busactivatable.patch
@@ -0,0 +1,11 @@
+diff --git a/src/org.kde.amarok.desktop b/src/org.kde.amarok.desktop
+index 198a0c1..3d82037 100644
+--- a/src/org.kde.amarok.desktop
++++ b/src/org.kde.amarok.desktop
+@@ -234,6 +234,5 @@ X-KDE-Keywords[x-test]=xxmusicxx,xxpodcastxx
+ X-KDE-Keywords[zh_CN]=music,podcast,音乐,播客
+ X-KDE-Keywords[zh_TW]=music,podcast
+ X-KDE-Protocols=http
+-DBusActivatable=true
+ Terminal=false
+ Categories=Qt;KDE;AudioVideo;Audio;Player;