blob: e7c2dd5d1aa8fa0961121653aa67b1df48ea2b91 (
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
35
|
# Maintainer: MichaĆ Lisowski <lisu@riseup.net>
pkgname=thunderbird-conversations
pkgver=4.0.26
pkgrel=1
pkgdesc="GMail-like conversation view for Thunderbird"
arch=('any')
url="https://github.com/thunderbird-conversations/thunderbird-conversations"
license=('MPL' 'GPL2' 'LGPL2.1')
depends=('thunderbird')
makedepends=('git' 'npm' 'zip')
source=("https://github.com/protz/${pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('7e86c511bd712f2cb065e69b9e1c539a')
prepare() {
cd "${pkgname}-${pkgver}"
git submodule init
git submodule update
}
build() {
cd "${pkgname}-${pkgver}"
npm install
npm run build
}
package() {
cd "${pkgname}-${pkgver}"
emid="$(grep '"id": ' addon/manifest.json | awk -F: '{print $2}' | sed 's/ //;s/"//g;s/,//')"
install -d -m755 "${pkgdir}/usr/lib/thunderbird/extensions/${emid}"
cd "${pkgdir}/usr/lib/thunderbird/extensions/${emid}"
unzip "${srcdir}/${pkgname}-${pkgver}/conversations.xpi"
}
|