blob: ac0241b68eae1b91ffa4a034b1c13224dc3eee9e (
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="firedragon-extension-plasma-integration"
pkgver=1.9
pkgrel=1
pkgdesc="KDE plasma browser integration extension for FireDragon"
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" "firedragon")
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/firedragon/browser/extensions/$id.xpi"
}
|