blob: fbe44ef1f03771c9d507362a7e843493ee8c8062 (
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
30
31
32
33
34
|
# Contributor: Daniele Basso <d dot bass05 at proton dot me>
# Contributor: dr460nf1r3 <dr460nf1r3 at garudalinux dot org>
pkgname=firefox-extension-localcdn
pkgver=2.6.76
_commit=ff5822fa63c0ad64511a8b2e262655e3bc9e04ab
pkgrel=1
pkgdesc='LocalCDN addon for Firefox'
arch=(any)
url=https://www.localcdn.org/
license=(MPL-2.0)
groups=(firefox-addons)
makedepends=(git zip strip-nondeterminism)
provides=('librewolf-extension-localcdn')
conflicts=('librewolf-extension-localcdn')
source=("git+https://codeberg.org/nobody/LocalCDN.git#commit=$_commit?signed")
b2sums=('af3dce79207240150d7e38a48a8609dd2c46d9bb54b50ce505846a967048c86562717ceb23f18a7241475d1577d3997289c519454d0548fd2803b5d41a2a627c')
validpgpkeys=(3F59043BE267E1B1177688AC8F6DE3D614FCFD7A) # nobody <nfo@localcdn.org>
package() {
cd LocalCDN
# Prevent release notes from being opened during update/installation
# sed -i '/main\._showReleaseNotes/d' core/main.js
install -d "$pkgdir"/usr/lib/firefox/browser/extensions
zip -r \
"$pkgdir/usr/lib/firefox/browser/extensions/{b86e4813-687a-43e6-ab65-0bde4ab75758}.xpi" \
* -x '.git*' 'audit/*'
/usr/bin/vendor_perl/strip-nondeterminism -t zip "$pkgdir"/usr/lib/firefox/browser/extensions/*.xpi
# create symlink for librewolf
install -d "$pkgdir/usr/lib/librewolf/browser/extensions/"
ln -sf "/usr/lib/firefox/browser/extensions/{b86e4813-687a-43e6-ab65-0bde4ab75758}.xpi" "$pkgdir/usr/lib/librewolf/browser/extensions/"
}
|