Package Details: mconnect-git 426.3991150-2

Git Clone URL: https://aur.archlinux.org/mconnect-git.git (read-only, click to copy)
Package Base: mconnect-git
Description: KDE Connect protocol implementation in Vala/C for non-KDE desktops
Upstream URL: https://github.com/grimpy/mconnect
Licenses: GPL2
Conflicts: mconnect
Provides: mconnect
Submitter: American_Jesus
Maintainer: nicolarevelant
Last Packager: nicolarevelant
Votes: 21
Popularity: 0.005585
First Submitted: 2016-03-24 23:21 (UTC)
Last Updated: 2024-01-14 15:59 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

jonathannerat commented on 2021-06-21 14:15 (UTC)

@ValHue I tried fixing this in an attempt to get this to work in my setup but for some reason it keeps crashing due to some issues with MPRIS.

Upstream hasn't seen any new commits since Jan 30, and I just found that grimpy's fork (where I got the patch from) is more active and I'm using that right now.

I'm not really sure what are the steps to follow, should we change upstream url or should I create a new package like grimpy-mconnect-git for grimpy's fork?

<deleted-account> commented on 2021-06-19 08:26 (UTC)

@jonathannerat Thank you for your collaboration. If at any time you want to maintain this package, you just have to say so. Sometimes I am very short of time ...

jonathannerat commented on 2021-06-19 03:18 (UTC) (edited on 2021-06-19 03:24 (UTC) by jonathannerat)

These are the patches I applied to this package to make it work again:

diff --git a/PKGBUILD b/PKGBUILD
index 0c8beb2..dbe1e8b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,27 +16,30 @@ license=('GPL2')
 install="${pkgname}.install"
 provides=("${_pkgname}")
 conflicts=("${_pkgname}")
-source=('mconnect::git+https://github.com/bboozzoo/mconnect.git#branch=master')
-md5sums=('SKIP')
+source=('mconnect::git+https://github.com/bboozzoo/mconnect.git#branch=master'
+        'mconnect_utils.patch')
+sha256sums=('SKIP'
+            '11a8e281a405e3d49c0b504dae03fcd33d1dbb5d278609d0163ecfec88b1ae1d')

 pkgver() {
-    cd "${_pkgname}"
+    cd "$srcdir/$_pkgname"
     echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
 }

 prepare() {
-    cd "${_pkgname}"
+    cd "$srcdir/$_pkgname"
     mkdir build
+    patch -p1 -i ../mconnect_utils.patch
 }

 build() {
-    cd "${_pkgname}/build"
+    cd "$srcdir/$_pkgname/build"
     arch-meson --prefix=/usr/
     ninja
 }

 package() {
-    cd "$_pkgname/build"
+    cd "$srcdir/$_pkgname/build"
     DESTDIR="$pkgdir" ninja install
 } 

diff --git a/mconnect_utils.patch b/mconnect_utils.patch
new file mode 100644
index 0000000..91d60c7
--- /dev/null
+++ b/mconnect_utils.patch
@@ -0,0 +1,22 @@
+diff --git a/src/mconnect/utils.vala b/src/mconnect/utils.vala
+index 1d7f5cb..83e35bf 100644
+--- a/src/mconnect/utils.vala
++++ b/src/mconnect/utils.vala
+@@ -160,7 +160,7 @@ namespace Utils {
+ 
+             // regex taken from SO
+             // uncrustify breaks the regex, so *INDENT-OFF*
+-          Regex r = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+,.~#?&\/=]*)/;
++          GLib.Regex r = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+,.~#?&\/=]*)/;
+             // *INDENT-ON*
+ 
+             MatchInfo mi;
+@@ -180,7 +180,7 @@ namespace Utils {
+                 debug ("no match");
+             }
+             return matches;
+-        } catch (RegexError e) {
++        } catch (GLib.RegexError e) {
+             warning ("failed to compile regex: %s", e.message);
+             return {};
+         }

based on the issue on upstream: https://github.com/bboozzoo/mconnect/issues/60

nmamtf commented on 2020-02-22 02:54 (UTC)

@airon90 It's very useful for non-gnome or non-kde DE.

Airon90 commented on 2018-05-14 17:30 (UTC)

mconnect is useless now as the project was abandoned in favour of another GNOME Shell extension, GSConnect

bjesus commented on 2017-10-03 23:33 (UTC)

Thanks for updating the package for Meson!

AlexWayfer commented on 2017-10-02 08:22 (UTC)

@American_Jesus After the last update it in `/usr/bin`, not `sbin`, and available. Thank you.

American_Jesus commented on 2017-10-01 21:54 (UTC) (edited on 2017-10-01 21:54 (UTC) by American_Jesus)

@AlexWayfer /usr/sbin/mconnectctl