summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b53aac03f65c20fc05221db743db44953d9431dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname="librewolf-extension-plasma-integration"
pkgver=1.9
pkgrel=1
pkgdesc="KDE plasma browser integration extension for Librewolf"
arch=("any")
url="https://community.kde.org/Plasma/Browser_Integration"
license=("GPL-3.0-or-later")
makedepends=("web-ext" "jq")
source=("https://invent.kde.org/plasma/plasma-browser-integration/-/archive/browser/$pkgver/plasma-browser-integration-browser-$pkgver.tar.gz")
sha256sums=('da4eda213b4cfc5cecbaadbf18870b07cb0c8da7482e2f604e5d52458309286d')

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