[arch-commits] Commit in thunderbird-extension-enigmail/repos (2 files)

Eli Schwartz eschwartz at archlinux.org
Wed Sep 12 22:14:14 UTC 2018


    Date: Wednesday, September 12, 2018 @ 22:14:14
  Author: eschwartz
Revision: 380060

archrelease: copy trunk to community-any

Added:
  thunderbird-extension-enigmail/repos/community-any/
  thunderbird-extension-enigmail/repos/community-any/PKGBUILD
    (from rev 380059, thunderbird-extension-enigmail/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: thunderbird-extension-enigmail/repos/community-any/PKGBUILD (from rev 380059, thunderbird-extension-enigmail/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-09-12 22:14:14 UTC (rev 380060)
@@ -0,0 +1,49 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Daniel Landau <daniel.landau at iki.fi>
+# Contributor: Einhard Leichtfuß <alguien at respiranto.de>
+# Contributor: Xyne
+# Contributor: David Manouchehri <d at 32t.ca>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+# Contributor: Thomas Jost <schnouki schnouki net>
+# Contributor: Hinrich Harms <arch hinrich de>
+
+pkgname=thunderbird-extension-enigmail
+pkgver=2.0.8
+pkgrel=1
+pkgdesc="OpenPGP message encryption and authentication for Thunderbird"
+arch=('any')
+url="https://www.enigmail.net/"
+license=('MPL' 'GPL3')
+makedepends=('zip' 'python2' 'perl')
+replaces=('thunderbird-enigmail')
+source=("https://www.enigmail.net/download/source/enigmail-${pkgver}.tar.gz"{,.asc})
+sha512sums=('9d2e95c2eae6ca22897eb8b2961964d96fd633e7d33a8c0c04a29b4cbc8585777598578abfb0484b96827ca165fe9c8b873e5e7f7cb3ba8cd0779ddc4f10e305'
+            'SKIP')
+validpgpkeys=('4F9F89F5505AC1D1A260631CDB1187B9DD5F693B') # Patrick Brunschwig <patrick at enigmail.net>
+
+build() {
+    cd "${srcdir}"/enigmail
+
+    ./configure
+    make -j1 # fails with -j greater than 1
+}
+
+package() {
+    depends=('thunderbird' 'gnupg')
+    cd "${srcdir}"/enigmail
+
+    if [[ -f package/install.rdf ]]; then
+        _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' build/dist/install.rdf)"
+    else
+        _extension_id="$(sed -n 's/.*"id": "\(.*\)".*/\1/p' build/dist/manifest.json)"
+    fi
+    _extension_dest="${pkgdir}/usr/lib/thunderbird/extensions/${_extension_id}"
+    # Should this extension be unpacked or not?
+    if grep -q '<em:unpack>true</em:unpack>' build/dist/install.rdf 2>/dev/null; then
+        install -dm755 "${_extension_dest}"
+        cp -R build/dist/* "${_extension_dest}"
+        chmod -R ugo+rX "${_extension_dest}"
+    else
+        install -Dm644 build/enigmail-${pkgver}.xpi "${_extension_dest}.xpi"
+    fi
+}



More information about the arch-commits mailing list