summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 177672768f3d965a59d34a957c36f79c5fd04c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: detiam <dehe_tian@outlook.com>

pkgname=firefox-esr-extension-plasma-integration
pkgver=1.9.1
pkgrel=1
pkgdesc='KDE plasma browser integration extension for firefox ESR'
arch=('any')
url="https://invent.kde.org/plasma/plasma-browser-integration"
license=("CC0-1.0 AND GPL-2.0-or-later AND GPL-3.0-or-later AND MIT")
makedepends=("web-ext" "jq")
groups=('firefox-esr-addons')
source=("$url/-/archive/browser/$pkgver/plasma-browser-integration-browser-$pkgver.tar.gz")
sha1sums=('dca37cfb96512d0c747e2fba76324ef18c106bb4')

build(){
  cd "$srcdir/plasma-browser-integration-browser-$pkgver/extension"
  web-ext build -a dist
}

package(){
  cd "$srcdir/plasma-browser-integration-browser-$pkgver/extension"
  
  depends=('firefox-esr' 'plasma-browser-integration')

  local id && id=$(jq -r .applications.gecko.id manifest.json)
  msg2 "Firefox extension id is $id"
  install -Dm644 dist/plasma_integration-$pkgver.zip \
    "$pkgdir/usr/lib/firefox-esr/browser/extensions/$id.xpi"
}