blob: d7ce66c52700b753c8f3cccd52c556124bf76faa (
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
|
# Maintainer: Joerg Weislogel <mutoroglin [at] posteo [dot] de>
pkgname=thunderbird-extension-localfolders
pkgver=4.2.5
pkgrel=1
pkgdesc='Thunderbird extension that adds as many local folders as you want to, even on mapped or network locations'
arch=('any')
url='https://github.com/cleidigh/Localfolder-TB'
license=('MPL-2.0')
depends=('thunderbird')
groups=('thunderbird-addons')
makedepends=('unzip' 'jq')
source=("license_MPL-2.0.html::http://www.mozilla.org/MPL/2.0/"
"${pkgname}_${pkgver}-${pkgrel}.xpi::https://addons.thunderbird.net/thunderbird/downloads/file/1045337/localfolders-4.2.5-tb.xpi")
sha256sums=(SKIP
'9c609df37343f3ade8fed9fb88e70958ef6feebff8bfbf237134db8842e9c2ed')
package() {
depends=('thunderbird>=140')
_extensionid=$(unzip -p ${pkgname}_${pkgver}-${pkgrel}.xpi manifest.json | jq -r ".applications.gecko.id")
if [[ -z ${_extensionid} ]]; then
printf "\033[31;1m==> ERROR: \033[37;1mthunderbird extension 'application id' not found!\033[0m\n"
exit 1
fi
install -D -m644 ${pkgname}_${pkgver}-${pkgrel}.xpi "${pkgdir}/usr/lib/thunderbird/extensions/${_extensionid}.xpi"
install -D -m644 license_MPL-2.0.html "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE_MPL-2.0.html"
}
|