[arch-commits] Commit in element.io/repos (4 files)

Nicola Squartini tensor5 at archlinux.org
Fri Jun 18 01:56:49 UTC 2021


    Date: Friday, June 18, 2021 @ 01:56:48
  Author: tensor5
Revision: 965090

archrelease: copy trunk to community-staging-x86_64

Added:
  element.io/repos/community-staging-x86_64/
  element.io/repos/community-staging-x86_64/PKGBUILD
    (from rev 965089, element.io/trunk/PKGBUILD)
  element.io/repos/community-staging-x86_64/element-desktop.sh
    (from rev 965089, element.io/trunk/element-desktop.sh)
  element.io/repos/community-staging-x86_64/io.element.Element.desktop
    (from rev 965089, element.io/trunk/io.element.Element.desktop)

----------------------------+
 PKGBUILD                   |   92 +++++++++++++++++++++++++++++++++++++++++++
 element-desktop.sh         |    3 +
 io.element.Element.desktop |   10 ++++
 3 files changed, 105 insertions(+)

Copied: element.io/repos/community-staging-x86_64/PKGBUILD (from rev 965089, element.io/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-06-18 01:56:48 UTC (rev 965090)
@@ -0,0 +1,92 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Steef Hegeman <mail at steefhegeman.com>
+# Contributor: Luca Weiss <luca (at) z3ntu (dot) xyz>
+# Contributor: Julian Schacher <jspp at posteo.net>
+
+pkgbase=element.io
+pkgname=(element-web element-desktop)
+pkgver=1.7.29
+pkgrel=2
+pkgdesc="Glossy Matrix collaboration client — "
+arch=(x86_64)
+url="https://element.io"
+license=(Apache)
+makedepends=(npm git yarn python rust sqlcipher electron12 nodejs-lts-fermium)
+_url="https://github.com/vector-im/element"
+source=(element-web-${pkgver}.tar.gz::${_url}-web/archive/v${pkgver}.tar.gz
+        element-web-${pkgver}.tar.gz.asc::${_url}-web/releases/download/v${pkgver}/v${pkgver}-src.tar.gz.asc
+        element-desktop-${pkgver}.tar.gz::${_url}-desktop/archive/v${pkgver}.tar.gz
+        element-desktop-${pkgver}.tar.gz.asc::${_url}-desktop/releases/download/v${pkgver}/v${pkgver}-src.tar.gz.asc
+        io.element.Element.desktop
+        element-desktop.sh)
+sha256sums=('82d9c036c590b69b2b9c9df70c966246ddefdbeb35090ee9bd5fa15ee71b6739'
+            'SKIP'
+            'e09a893660a42fd6e6725c3edd2388d9417534f31230f28777277c817ebe2ad3'
+            'SKIP'
+            '0103f28a32fe31f698836516783c1c70a76a0117b5df7fd0af5c422c224220f9'
+            '31b5f7e6efb9643daba7e0edb04284f1d153c05264ee15670c79364746e3e155')
+validpgpkeys=(712BFBEE92DCA45252DB17D7C7BE97EFA179B100) # Element Releases <releases at riot.im>
+
+prepare() {
+  cd element-web-${pkgver}
+  # Switch target to output to directory rather than .deb package
+  sed -i 's/"target": "deb"/"target": "dir"/g' package.json
+  yarn install
+
+  cd ../element-desktop-${pkgver}
+  sed -i 's@"electronVersion": "12.0.2"@"electronVersion": "12.0.11"@g' package.json
+  sed -i 's@"https://packages.riot.im/desktop/update/"@null at g' element.io/release/config.json
+  yarn install
+}
+
+build() {
+  cd element-web-${pkgver}
+  yarn build
+
+  cd ../element-desktop-${pkgver}
+  yarn run build:native
+  yarn run build
+}
+
+package_element-web() {
+  pkgdesc+="web version."
+  replaces=(riot-web vector-web)
+
+  cd element-web-${pkgver}
+
+  install -d "${pkgdir}"/{usr/share/webapps,etc/webapps}/element
+
+  cp -r webapp/* "${pkgdir}"/usr/share/webapps/element/
+  install -Dm644 config.sample.json -t "${pkgdir}"/etc/webapps/element/
+  ln -s /etc/webapps/element/config.json "${pkgdir}"/usr/share/webapps/element/
+  echo "${pkgver}" > "${pkgdir}"/usr/share/webapps/element/version
+}
+
+package_element-desktop() {
+  pkgdesc+="desktop version."
+  replaces=(riot-desktop)
+  depends=("element-web=${pkgver}" electron12 sqlcipher)
+  backup=('etc/element/config.json')
+
+  cd element-desktop-${pkgver}
+
+  install -d "${pkgdir}"{/usr/lib/element/,/etc/webapps/element}
+
+  # Install the app content, replace the webapp with a symlink to the system package
+  cp -r dist/linux-unpacked/resources/* "${pkgdir}"/usr/lib/element/
+  ln -s /usr/share/webapps/element "${pkgdir}"/usr/lib/element/webapp
+
+  # Config file
+  ln -s /etc/element/config.json "${pkgdir}"/etc/webapps/element/config.json
+  install -Dm644 element.io/release/config.json -t "${pkgdir}"/etc/element
+
+  # Required extras
+  install -Dm644 ../io.element.Element.desktop -t "${pkgdir}"/usr/share/applications/
+  install -Dm755 ../${pkgname}.sh "${pkgdir}"/usr/bin/${pkgname}
+
+  # Icons
+  install -Dm644 ../element-web-${pkgver}/res/themes/element/img/logos/element-logo.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/io.element.Element.svg
+  for i in 16 24 48 64 96 128 256 512; do
+    install -Dm644 build/icons/${i}x${i}.png "${pkgdir}"/usr/share/icons/hicolor/${i}x${i}/apps/io.element.Element.png
+  done
+}

Copied: element.io/repos/community-staging-x86_64/element-desktop.sh (from rev 965089, element.io/trunk/element-desktop.sh)
===================================================================
--- community-staging-x86_64/element-desktop.sh	                        (rev 0)
+++ community-staging-x86_64/element-desktop.sh	2021-06-18 01:56:48 UTC (rev 965090)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+electron12 /usr/lib/element/app.asar "$@"

Copied: element.io/repos/community-staging-x86_64/io.element.Element.desktop (from rev 965089, element.io/trunk/io.element.Element.desktop)
===================================================================
--- community-staging-x86_64/io.element.Element.desktop	                        (rev 0)
+++ community-staging-x86_64/io.element.Element.desktop	2021-06-18 01:56:48 UTC (rev 965090)
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Element
+Comment=Feature-rich client for Matrix
+Exec=/usr/bin/element-desktop %u
+Terminal=false
+Type=Application
+Icon=io.element.Element
+StartupWMClass=Element
+Categories=Network;InstantMessaging;Chat;IRCClient
+MimeType=x-scheme-handler/element;



More information about the arch-commits mailing list