[arch-commits] Commit in element.io/repos/community-x86_64 (8 files)

Bruno Pagani archange at gemini.archlinux.org
Tue Dec 14 15:16:25 UTC 2021


    Date: Tuesday, December 14, 2021 @ 15:16:24
  Author: archange
Revision: 1072758

archrelease: copy trunk to community-x86_64

Added:
  element.io/repos/community-x86_64/PKGBUILD
    (from rev 1072757, element.io/trunk/PKGBUILD)
  element.io/repos/community-x86_64/autolaunch.patch
    (from rev 1072757, element.io/trunk/autolaunch.patch)
  element.io/repos/community-x86_64/element-desktop.sh
    (from rev 1072757, element.io/trunk/element-desktop.sh)
  element.io/repos/community-x86_64/io.element.Element.desktop
    (from rev 1072757, element.io/trunk/io.element.Element.desktop)
Deleted:
  element.io/repos/community-x86_64/PKGBUILD
  element.io/repos/community-x86_64/autolaunch.patch
  element.io/repos/community-x86_64/element-desktop.sh
  element.io/repos/community-x86_64/io.element.Element.desktop

----------------------------+
 PKGBUILD                   |  196 +++++++++++++++++++++----------------------
 autolaunch.patch           |   22 ++--
 element-desktop.sh         |    6 -
 io.element.Element.desktop |   20 ++--
 4 files changed, 122 insertions(+), 122 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-14 15:15:42 UTC (rev 1072757)
+++ PKGBUILD	2021-12-14 15:16:24 UTC (rev 1072758)
@@ -1,98 +0,0 @@
-# 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>
-
-_electron=electron13
-pkgbase=element.io
-pkgname=(element-web element-desktop)
-pkgver=1.9.6
-pkgrel=1
-pkgdesc="Glossy Matrix collaboration client — "
-arch=(x86_64)
-url="https://element.io"
-license=(Apache)
-makedepends=(npm git yarn python rust sqlcipher ${_electron} nodejs-lts-gallium)
-_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
-        autolaunch.patch
-        io.element.Element.desktop
-        element-desktop.sh)
-sha256sums=('07c5575c79a5ddb2a3750528286cfe90ceeb32d985a88eb2b55452d7902e351e'
-            'SKIP'
-            '420ac62f306a522170aede01b807aa4b406c7f1e1377165f455851b220c32f7b'
-            'SKIP'
-            'aaae4ffa41590361dac0c159aecc1166f69e459e89faa9d5cab1202f0277e06f'
-            '0103f28a32fe31f698836516783c1c70a76a0117b5df7fd0af5c422c224220f9'
-            '4c931121009985e7d3f73928c9db88508eedd974a7741e635bb290e3a2cd75db')
-validpgpkeys=(712BFBEE92DCA45252DB17D7C7BE97EFA179B100) # Element Releases <releases at riot.im>
-
-prepare() {
-  # Specify electron version in launcher
-  sed -i "s|@ELECTRON@|${_electron}|" element-desktop.sh
-
-  cd element-web-${pkgver}
-  yarn install --no-fund
-
-  cd ../element-desktop-${pkgver}
-  patch -p1 < ../autolaunch.patch
-  sed -i 's|"target": "deb"|"target": "dir"|' package.json
-  sed -i 's|"electronVersion": "13.5.1"|"electronVersion": "13.6.3"|' package.json
-  sed -i 's|"https://packages.element.io/desktop/update/"|null|' element.io/release/config.json
-  yarn install --no-fund
-}
-
-build() {
-  cd element-web-${pkgver}
-  yarn build --offline
-
-  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}" ${_electron} 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-x86_64/PKGBUILD (from rev 1072757, element.io/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-14 15:16:24 UTC (rev 1072758)
@@ -0,0 +1,98 @@
+# 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>
+
+_electron=electron13
+pkgbase=element.io
+pkgname=(element-web element-desktop)
+pkgver=1.9.7
+pkgrel=1
+pkgdesc="Glossy Matrix collaboration client — "
+arch=(x86_64)
+url="https://element.io"
+license=(Apache)
+makedepends=(npm git yarn python rust sqlcipher ${_electron} nodejs-lts-gallium)
+_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
+        autolaunch.patch
+        io.element.Element.desktop
+        element-desktop.sh)
+sha256sums=('b3892acf206f866b571e2eb3dcc01c72c315d737c9d040d72405c066077d9e4c'
+            'SKIP'
+            '1ee24d8c1f894ed66766d67dd5b6a5c2b1e6dcd1f866c9c49a4fd0108fd7a9e2'
+            'SKIP'
+            'aaae4ffa41590361dac0c159aecc1166f69e459e89faa9d5cab1202f0277e06f'
+            '0103f28a32fe31f698836516783c1c70a76a0117b5df7fd0af5c422c224220f9'
+            '4c931121009985e7d3f73928c9db88508eedd974a7741e635bb290e3a2cd75db')
+validpgpkeys=(712BFBEE92DCA45252DB17D7C7BE97EFA179B100) # Element Releases <releases at riot.im>
+
+prepare() {
+  # Specify electron version in launcher
+  sed -i "s|@ELECTRON@|${_electron}|" element-desktop.sh
+
+  cd element-web-${pkgver}
+  yarn install --no-fund
+
+  cd ../element-desktop-${pkgver}
+  patch -p1 < ../autolaunch.patch
+  sed -i 's|"target": "deb"|"target": "dir"|' package.json
+  sed -i 's|"electronVersion": "13.5.2"|"electronVersion": "13.6.3"|' package.json
+  sed -i 's|"https://packages.element.io/desktop/update/"|null|' element.io/release/config.json
+  yarn install --no-fund
+}
+
+build() {
+  cd element-web-${pkgver}
+  VERSION=${pkgver} yarn build --offline
+
+  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}" ${_electron} 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
+}

Deleted: autolaunch.patch
===================================================================
--- autolaunch.patch	2021-12-14 15:15:42 UTC (rev 1072757)
+++ autolaunch.patch	2021-12-14 15:16:24 UTC (rev 1072758)
@@ -1,11 +0,0 @@
-diff --git a/src/electron-main.ts b/src/electron-main.ts
---- a/src/electron-main.ts
-+++ b/src/electron-main.ts
-@@ -229,6 +229,7 @@ async function setupGlobals() {
-     launcher = new AutoLaunch({
-         name: vectorConfig.brand || 'Element',
-         isHidden: true,
-+        path: "/usr/bin/element-desktop",
-         mac: {
-             useLaunchAgent: true,
-         },

Copied: element.io/repos/community-x86_64/autolaunch.patch (from rev 1072757, element.io/trunk/autolaunch.patch)
===================================================================
--- autolaunch.patch	                        (rev 0)
+++ autolaunch.patch	2021-12-14 15:16:24 UTC (rev 1072758)
@@ -0,0 +1,11 @@
+diff --git a/src/electron-main.ts b/src/electron-main.ts
+--- a/src/electron-main.ts
++++ b/src/electron-main.ts
+@@ -229,6 +229,7 @@ async function setupGlobals() {
+     launcher = new AutoLaunch({
+         name: vectorConfig.brand || 'Element',
+         isHidden: true,
++        path: "/usr/bin/element-desktop",
+         mac: {
+             useLaunchAgent: true,
+         },

Deleted: element-desktop.sh
===================================================================
--- element-desktop.sh	2021-12-14 15:15:42 UTC (rev 1072757)
+++ element-desktop.sh	2021-12-14 15:16:24 UTC (rev 1072758)
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-LD_PRELOAD=/usr/lib/libsqlcipher.so exec @ELECTRON@ /usr/lib/element/app.asar --disable-dev-mode "$@"

Copied: element.io/repos/community-x86_64/element-desktop.sh (from rev 1072757, element.io/trunk/element-desktop.sh)
===================================================================
--- element-desktop.sh	                        (rev 0)
+++ element-desktop.sh	2021-12-14 15:16:24 UTC (rev 1072758)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+LD_PRELOAD=/usr/lib/libsqlcipher.so exec @ELECTRON@ /usr/lib/element/app.asar --disable-dev-mode "$@"

Deleted: io.element.Element.desktop
===================================================================
--- io.element.Element.desktop	2021-12-14 15:15:42 UTC (rev 1072757)
+++ io.element.Element.desktop	2021-12-14 15:16:24 UTC (rev 1072758)
@@ -1,10 +0,0 @@
-[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;

Copied: element.io/repos/community-x86_64/io.element.Element.desktop (from rev 1072757, element.io/trunk/io.element.Element.desktop)
===================================================================
--- io.element.Element.desktop	                        (rev 0)
+++ io.element.Element.desktop	2021-12-14 15:16:24 UTC (rev 1072758)
@@ -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