blob: 817dc70a77d9d80d2f63af3eb4f1a0e927108a66 (
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
36
37
38
39
40
41
|
# Maintainer: Frederick Zhang <frederick888@tsundere.moe>
pkgname=external-editor-revived
pkgver=1.2.0
pkgrel=1
pkgdesc="External Editor Revived is a Thunderbird MailExtension which allows editing emails in programs such as Vim, Neovim, Emacs, etc."
arch=('x86_64')
url="https://github.com/Frederick888/external-editor-revived"
license=('GPL3')
depends=('thunderbird>=91')
makedepends=('rust' 'zip')
source=(
"https://github.com/Frederick888/external-editor-revived/archive/refs/tags/v${pkgver}.tar.gz"
"external_editor_revived.json"
)
md5sums=('a324b5113209881883aff0e596bfcad2'
'7e14ff6bb5cad780110f056e5c0d7d34')
sha256sums=('9d045520a3fb591b67129dc0836726ee3f7922f1e18503495b9423dc62f1c73e'
'a4b61c37f16f392f8289002c0e9afc5a8570d7ed902be25c62c7dc0703a20e05')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cargo build --locked --release --target-dir ./target
cd "${srcdir}/${pkgname}-${pkgver}/extension"
zip -r -FS "${srcdir}/${pkgname}@tsundere.moe.xpi" *
}
package() {
cd "${srcdir}"
install -d "${pkgdir}/usr/lib/thunderbird/extensions"
install -Dm644 "${pkgname}@tsundere.moe.xpi" "${pkgdir}/usr/lib/thunderbird/extensions/${pkgname}@tsundere.moe.xpi"
install -d "${pkgdir}/usr/lib/mozilla/native-messaging-hosts"
install -Dm644 "external_editor_revived.json" "${pkgdir}/usr/lib/mozilla/native-messaging-hosts/external_editor_revived.json"
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -d "${pkgdir}/usr/share/license/${pkgname}"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/license/${pkgname}/LICENSE"
}
|