summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 50adcff39531699716cc81a02806ed03bab16848 (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
42
43
44
45
46
# Maintainer: Einhard Leichtfuß <alguien@respiranto.de>
# Contributor: Daniel Landau <daniel.landau@iki.fi>
# Contributor: Xyne
# Contributor: David Manouchehri <d@32t.ca>
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Contributor: Thomas Jost <schnouki schnouki net>
# Contributor: Hinrich Harms <arch hinrich de>

pkgname=thunderbird-extension-enigmail-git
pkgver=2.1.r193.gdd71be00
pkgrel=1
pkgdesc="OpenPGP message encryption and authentication for Thunderbird (development version)"
arch=('any')
url="https://www.enigmail.net/"
license=('MPL' 'GPL3')
depends=('gnupg' 'thunderbird<78')
makedepends=('git' 'zip' 'python' 'perl')
provides=('thunderbird-extension-enigmail' 'thunderbird-enigmail')
conflicts=('thunderbird-extension-enigmail' 'thunderbird-enigmail')
source=("enigmail-git::git+https://gitlab.com/enigmail/enigmail.git")
sha512sums=('SKIP')

pkgver()
{
	cd enigmail-git
	git describe --long | sed 's/enigmail-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build()
{
	cd enigmail-git
	./configure
	make -j1 # fails with -j greater than 1
}

package()
{
	cd enigmail-git

	local emid="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' \
		package/install.rdf)"
	local target_dir="${pkgdir}/usr/lib/thunderbird/extensions/${emid}"

	install -d -m755 "$target_dir"
	cp -R build-tb/dist/. "$target_dir"
}