Package Details: librewolf-extension-plasma-integration 1.8.1-2

Git Clone URL: https://aur.archlinux.org/librewolf-extension-plasma-integration.git (read-only, click to copy)
Package Base: librewolf-extension-plasma-integration
Description: Plasma browser integration addon for Librewolf
Upstream URL: https://addons.mozilla.org/en-US/firefox/addon/plasma-integration/
Keywords: extension integration librewolf plasma
Licenses: GPLv3
Groups: librewolf-addons
Submitter: dr460nf1r3
Maintainer: dr460nf1r3
Last Packager: dr460nf1r3
Votes: 9
Popularity: 0.87
First Submitted: 2021-02-01 10:58 (UTC)
Last Updated: 2022-01-01 17:22 (UTC)

Latest Comments

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.

jenefermarker commented on 2021-12-09 20:55 (UTC)

The addon is working but still shows in the browser that it failed to connect to local host. Also can't access its preferences

dr460nf1r3 commented on 2021-11-09 11:26 (UTC)

It's fixed, thanks for reporting :)

<deleted-account> commented on 2021-11-08 19:17 (UTC)

curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://addons.mozilla.org/firefox/downloads/file/3392927/plasma_integration-1.8.0.1-fx.xpi
    Aborting...
 -> error downloading sources: librewolf-extension-plasma-integration 
    context: exit status 1