[arch-commits] Commit in wire-desktop/repos (3 files)

Maxim Baz maximbaz at archlinux.org
Mon May 6 21:20:17 UTC 2019


    Date: Monday, May 6, 2019 @ 21:20:17
  Author: maximbaz
Revision: 461865

archrelease: copy trunk to community-any

Added:
  wire-desktop/repos/community-any/
  wire-desktop/repos/community-any/PKGBUILD
    (from rev 461864, wire-desktop/trunk/PKGBUILD)
  wire-desktop/repos/community-any/wire-desktop.desktop
    (from rev 461864, wire-desktop/trunk/wire-desktop.desktop)

----------------------+
 PKGBUILD             |   54 +++++++++++++++++++++++++++++++++++++++++++++++++
 wire-desktop.desktop |   13 +++++++++++
 2 files changed, 67 insertions(+)

Copied: wire-desktop/repos/community-any/PKGBUILD (from rev 461864, wire-desktop/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-05-06 21:20:17 UTC (rev 461865)
@@ -0,0 +1,54 @@
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+# Contributor: Conor Anderson <conor at conr.ca>
+
+pkgname=wire-desktop
+pkgver=3.9.2895
+pkgrel=3
+pkgdesc='End-to-end encrypted messenger with file sharing, voice calls and video conferences'
+arch=('any')
+url='https://wire.com/'
+license=('GPL3')
+depends=('electron' 'xdg-utils')
+makedepends=('git' 'npm' 'yarn')
+optdepends=('emoji-font: colorful emoji')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/wireapp/${pkgname}/archive/linux/${pkgver}.tar.gz"
+        "${pkgname}-${pkgver}.tar.gz.sig::https://github.com/wireapp/${pkgname}/releases/download/linux%2F${pkgver}/${pkgname}-linux-${pkgver}.tar.gz.sig"
+        "${pkgname}.desktop")
+sha256sums=('852de3b3eddce0611432d1249303a6e99bdf1450ac26aa60858e216b10562e6f'
+            'SKIP'
+            '53f37e99d4c2f41a3e31fd70154d82ba06a4af578c68df86af4906f7f37ec787')
+validpgpkeys=('ABBA007D6E14E2DB5B283C45D599C1AA126762B1')
+
+prepare() {
+    # Create launcher script
+    cat << EOF > "${pkgname}"
+#!/usr/bin/env sh
+
+electron "/usr/lib/${pkgname}" "\$@"
+EOF
+}
+
+build() {
+    cd "${pkgname}-linux-${pkgver}"
+    yarn
+    yarn build:ts
+    BUILD_NUMBER="${pkgver##*.}" npx grunt 'linux-prod-package'
+}
+
+package() {
+    # Place files
+    install -d "${pkgdir}/usr/lib/${pkgname}"
+    cp -a "${pkgname}-linux-${pkgver}/electron/"* "${pkgdir}/usr/lib/${pkgname}"
+
+    # Place launcher script
+    install -Dm755 -t "${pkgdir}/usr/bin/" "${pkgname}"
+
+    # Place desktop entry and icon
+    desktop-file-install -m 644 --dir "${pkgdir}/usr/share/applications/" "${pkgname}.desktop"
+    local res
+    for res in 32x32 256x256; do
+        install -Dm644 "${pkgname}-linux-${pkgver}/resources/icons/${res}.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/${pkgname}.png"
+    done
+}
+
+# vim:set ts=4 sw=4 et:

Copied: wire-desktop/repos/community-any/wire-desktop.desktop (from rev 461864, wire-desktop/trunk/wire-desktop.desktop)
===================================================================
--- community-any/wire-desktop.desktop	                        (rev 0)
+++ community-any/wire-desktop.desktop	2019-05-06 21:20:17 UTC (rev 461865)
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Name=Wire
+Comment=The most secure collaboration platform.
+Exec=wire-desktop %U
+Terminal=false
+Type=Application
+Icon=wire-desktop
+StartupWMClass=Wire
+Categories=Network;
+GenericName=Secure messenger
+Keywords=chat;encrypt;e2e;messenger;videocall
+MimeType=x-scheme-handler/wire
+Version=1.1



More information about the arch-commits mailing list