Package Details: librewolf-extension-plasma-integration 1.9-1

Git Clone URL: https://aur.archlinux.org/librewolf-extension-plasma-integration.git (read-only, click to copy)
Package Base: librewolf-extension-plasma-integration
Description: KDE plasma browser integration extension for Librewolf
Upstream URL: https://community.kde.org/Plasma/Browser_Integration
Keywords: extension integration librewolf plasma
Licenses: GPL-3.0-or-later
Submitter: dr460nf1r3
Maintainer: dr460nf1r3
Last Packager: dr460nf1r3
Votes: 11
Popularity: 0.45
First Submitted: 2021-02-01 10:58 (UTC)
Last Updated: 2024-04-27 11:56 (UTC)

Latest Comments

1 2 Next › Last »

omnigenous commented on 2024-11-04 23:54 (UTC) (edited on 2024-11-05 00:06 (UTC) by omnigenous)

Installed this and restarted Librewolf now I'm getting "Failed to connect to the native host." Same error I got with extension from Firefox add-ons. I have plasma-browser-integration 6.2.2-1 installed.

I did run following command and restarted: https://librewolf.net/docs/faq/#how-do-i-get-native-messaging-to-work, didn't help.

Apparently symlink is dead:

lrwxrwxrwx 1 user user   44 Nov  5 00:04 native-messaging-hosts -> /home/user/.mozilla/native-messaging-hosts

HurricanePootis commented on 2024-04-26 01:56 (UTC)

With the 1.9 Update, I have made the package build from source and have updated the license() array to be more accurate and comply with the SPDX specification (which PKGBUILDs are supposed to).

diff --git a/PKGBUILD b/PKGBUILD
index 1262922..57152c6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,26 @@
 pkgname=librewolf-extension-plasma-integration
-pkgver=1.8.1
-pkgrel=2
+pkgver=1.9
+pkgrel=1
 pkgdesc='Plasma browser integration addon for Librewolf'
 arch=('any')
-url='https://addons.mozilla.org/en-US/firefox/addon/plasma-integration/'
-license=('GPLV3')
+url='https://community.kde.org/Plasma/Browser_Integration'
+license=('CC0-1.0 AND GPL-2.0-or-later AND GPL-3.0-or-later AND MIT')
 depends=('plasma-browser-integration')
+makedepends=('web-ext' 'jq')
 groups=('librewolf-addons')
-source=("extension.xpi::https://addons.mozilla.org/firefox/downloads/file/3859385/plasma_integration-${pkgver}-fx.xpi")
-sha512sums=('47bb922787bed93fc8317a5cab99a4ac487bb7b7a95c98ee6ee59511c29f811082e224a992e0147f76bb3271e055b3651535c7da448b684fada1bd1444407fc0')
+source=("https://invent.kde.org/plasma/plasma-browser-integration/-/archive/browser/$pkgver/plasma-browser-integration-browser-$pkgver.tar.gz")
+sha512sums=('a593856f5bc1cf22a3ab5984cd5f59d739ffbe6e55011354fbf9f73b932d94efa6417d9ff3313826412febeca4c98bd62b84afedc1bfc724be0f2182406c2161')
 install=$pkgname.install

+build() {
+  cd "$srcdir/plasma-browser-integration-browser-$pkgver/extension"
+  web-ext build -a dist
+}
+
 package() {
-  install -Dm644 extension.xpi "${pkgdir}/usr/lib/librewolf/browser/extensions/plasma-browser-integration@kde.org.xpi"
+  cd "$srcdir/plasma-browser-integration-browser-$pkgver/extension"
+  local id=$(jq -r .applications.gecko.id manifest.json)
+  install -Dm644 dist/plasma_integration-$pkgver.zip "${pkgdir}/usr/lib/librewolf/browser/extensions/$id.xpi"

   # https://librewolf.net/docs/faq/#how-do-i-get-native-messaging-to-work
   mkdir -p ${pkgdir}/usr/lib/librewolf

begin-theadventu commented on 2023-07-16 16:55 (UTC) (edited on 2023-07-16 16:58 (UTC) by begin-theadventu)

URL https://addons.mozilla.org/addon/plasma-integration.

Why does this use a pre-compiled .xpi if it isn't a -bin package?

In addition, the extension shouldn't be downloaded as extension.xpi, as this can cause issues, just download it with the original name.

jenefermarker commented on 2022-01-01 00:05 (UTC) (edited on 2022-01-01 00:43 (UTC) by jenefermarker)

The last update failed for me since I have already done the symbolic linking and the folder for /usr/lib/librewolf already exists. Should use 'make -p ${pkgdir}/usr/lib/librewolf' instead to be safe.

dr460nf1r3 commented on 2021-12-31 17:19 (UTC)

Indeed an excellent idea. Thanks for letting me know :)

jenefermarker commented on 2021-12-31 15:03 (UTC)

Hello again, the issue was solved thanks to https://librewolf.net/docs/faq/#how-do-i-get-native-messaging-to-work by applying two symbolic linking for native messaging hosts. Maybe they should be added to the package as well.

jenefermarker commented on 2021-12-10 08:46 (UTC)

If you mean the kde plasma-browser-integration, then it's already installed and works fine with firefox

dr460nf1r3 commented on 2021-12-10 05:56 (UTC)

I think you need to install a package to support this as well.