[arch-commits] Commit in (5 files)
Maxim Baz
maximbaz at archlinux.org
Tue Feb 19 12:52:15 UTC 2019
Date: Tuesday, February 19, 2019 @ 12:52:14
Author: maximbaz
Revision: 434534
wire-desktop: import from AUR
Added:
wire-desktop/
wire-desktop/repos/
wire-desktop/trunk/
wire-desktop/trunk/PKGBUILD
wire-desktop/trunk/wire-desktop.desktop
----------------------+
PKGBUILD | 59 +++++++++++++++++++++++++++++++++++++++++++++++++
wire-desktop.desktop | 13 ++++++++++
2 files changed, 72 insertions(+)
Added: wire-desktop/trunk/PKGBUILD
===================================================================
--- wire-desktop/trunk/PKGBUILD (rev 0)
+++ wire-desktop/trunk/PKGBUILD 2019-02-19 12:52:14 UTC (rev 434534)
@@ -0,0 +1,59 @@
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+# Contributor: Conor Anderson <conor at conr.ca>
+
+pkgname=wire-desktop
+pkgver=3.6.2885
+pkgrel=4
+pkgdesc='End-to-end encrypted messenger with file sharing, voice calls and video conferences'
+arch=('x86_64')
+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=('524db450d41a2dc677b8450cdf4e13dcc753280b2f6565ed5e23e6f59c14bed4'
+ 'SKIP'
+ '53f37e99d4c2f41a3e31fd70154d82ba06a4af578c68df86af4906f7f37ec787')
+validpgpkeys=('ABBA007D6E14E2DB5B283C45D599C1AA126762B1')
+
+prepare() {
+ # Remove "node-addressbook" dependency as it's only for macOS
+ sed -i '/node-addressbook/d' "${pkgname}-linux-${pkgver}/electron/package.json"
+
+ # Create launcher script
+ cat << EOF > "${pkgname}"
+#!/usr/bin/env sh
+
+electron "/usr/lib/${pkgname}" "\$@"
+EOF
+}
+
+build() {
+ cd "${pkgname}-linux-${pkgver}"
+ yarn
+ yarn build:ts
+ # **********
+ # ***TODO*** in the next release simply use 'linux-prod-package'
+ BUILD_NUMBER="${pkgver##*.}" npx grunt 'clean:linux' 'update-keys' 'gitinfo' 'set-custom-data' 'release-prod' 'bundle'
+}
+
+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:
Added: wire-desktop/trunk/wire-desktop.desktop
===================================================================
--- wire-desktop/trunk/wire-desktop.desktop (rev 0)
+++ wire-desktop/trunk/wire-desktop.desktop 2019-02-19 12:52:14 UTC (rev 434534)
@@ -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