[arch-commits] Commit in riot/repos (4 files)

Bruno Pagani archange at archlinux.org
Sun May 12 15:00:52 UTC 2019


    Date: Sunday, May 12, 2019 @ 15:00:51
  Author: archange
Revision: 466587

archrelease: copy trunk to community-staging-any

Added:
  riot/repos/community-staging-any/
  riot/repos/community-staging-any/PKGBUILD
    (from rev 466586, riot/trunk/PKGBUILD)
  riot/repos/community-staging-any/riot-desktop.sh
    (from rev 466586, riot/trunk/riot-desktop.sh)
  riot/repos/community-staging-any/riot.desktop
    (from rev 466586, riot/trunk/riot.desktop)

-----------------+
 PKGBUILD        |   81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 riot-desktop.sh |    3 ++
 riot.desktop    |    9 ++++++
 3 files changed, 93 insertions(+)

Copied: riot/repos/community-staging-any/PKGBUILD (from rev 466586, riot/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-05-12 15:00:51 UTC (rev 466587)
@@ -0,0 +1,81 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Luca Weiss <luca (at) z3ntu (dot) xyz>
+
+pkgbase=riot
+pkgname=('riot-desktop' 'riot-web')
+pkgver=1.1.0
+pkgrel=2
+pkgdesc="A glossy Matrix collaboration client, web and desktop versions."
+arch=(any)
+url="https://riot.im"
+license=(Apache)
+makedepends=(npm git yarn)
+_url="https://github.com/vector-im/riot-web"
+source=(${pkgbase}-${pkgver}.tar.gz::"${_url}/archive/v${pkgver}.tar.gz"
+        ${pkgbase}-${pkgver}.tar.gz.asc::"${_url}/releases/download/v${pkgver}/v${pkgver}-src.tar.gz.asc"
+        "${pkgbase}.desktop"
+        "${pkgbase}-desktop.sh"
+        riot-electron5.patch::'https://gist.githubusercontent.com/dbkr/e898624be6d53590ebf494521d868fec/raw/e179d672f5e12fdd5ac9a9376928362b7b8735af/electron5.patch')
+sha256sums=('d3366ffaaf4bcd198c377ec7fe76a8c380687bad0073c3435eb3792a99c392fc'
+            'SKIP'
+            '043fbaa29be96f52541143e1684fd7ba33585edb215c06d1ed4e59ddc48a9fa7'
+            '94807ecb4210b09672d39f39b5be6f4e8fbd58e9d674c3b7ca795a6dd9c14ff7'
+            '82dd23b76a7887cb4f309955f76e7e0aafd780f9c7f20427d7d5028fff59aeda')
+validpgpkeys=(A878CDF66CF4A9B4807CEBE574692659BDA3D940) # Riot Releases <releases at riot.im>
+
+prepare() {
+  cd ${pkgbase}-web-${pkgver}
+  sed -i 's at https://riot.im/download/desktop/update/@null at g' electron_app/riot.im/config.json
+  patch -p1 -i ../riot-electron5.patch
+}
+
+build() {
+  cd ${pkgbase}-web-${pkgver}
+  npm install --cache ../npm-cache
+  npm run build --cache ../npm-cache
+}
+
+package_riot-web() {
+  pkgdesc="A glossy Matrix collaboration client for the web."
+  provides=(vector-web)
+  replaces=(vector-web)
+  cd ${pkgbase}-web-${pkgver}
+
+  install -d "${pkgdir}"/{usr/share/webapps,etc/webapps}/${pkgbase}
+
+  cp -r webapp/* "${pkgdir}"/usr/share/webapps/${pkgbase}/
+  install -Dm644 config.sample.json -t "${pkgdir}"/etc/webapps/${pkgbase}/
+  ln -s /etc/webapps/${pkgbase}/config.json "${pkgdir}"/usr/share/webapps/${pkgbase}/
+  echo "${pkgver}" > "${pkgdir}"/usr/share/webapps/${pkgbase}/version
+}
+
+package_riot-desktop() {
+  pkgdesc="A glossy Matrix collaboration client for the desktop."
+  depends=(riot-web electron)
+  backup=('etc/riot/config.json')
+  cd ${pkgbase}-web-${pkgver}
+
+  cd electron_app
+  npm install --cache "${srcdir}"/npm-cache
+  cd ..
+
+  install -d "${pkgdir}"{/usr/lib/${pkgbase}/electron_app,/etc/webapps/${pkgbase}}
+
+  ln -s /usr/share/webapps/${pkgbase} "${pkgdir}"/usr/lib/${pkgbase}/webapp
+  ln -s /etc/${pkgbase}/config.json "${pkgdir}"/etc/webapps/${pkgbase}/config.json
+
+  install -Dm644 package.json -t "${pkgdir}"/usr/lib/${pkgbase}/
+  cp -r origin_migrator "${pkgdir}"/usr/lib/${pkgbase}/
+  cp -r electron_app/src "${pkgdir}"/usr/lib/${pkgbase}/electron_app/
+  cp -r electron_app/node_modules "${pkgdir}"/usr/lib/${pkgbase}/electron_app/
+  install -Dm644 electron_app/img/riot.png -t "${pkgdir}"/usr/lib/${pkgbase}/electron_app/img
+  install -Dm644 electron_app/riot.im/config.json -t "${pkgdir}"/etc/${pkgbase}
+
+  install -Dm644 "${srcdir}"/${pkgbase}.desktop "${pkgdir}"/usr/share/applications/${pkgbase}.desktop
+  install -Dm755 "${srcdir}"/${pkgname}.sh "${pkgdir}"/usr/bin/${pkgname}
+
+  install -Dm644 res/themes/riot/img/logos/riot-im-logo.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/${pkgbase}.svg
+  for i in 16 24 48 64 96 128 256 512; do
+    install -Dm644 electron_app/build/icons/${i}x${i}.png "${pkgdir}"/usr/share/icons/hicolor/${i}x${i}/apps/${pkgbase}.png
+  done
+}

Copied: riot/repos/community-staging-any/riot-desktop.sh (from rev 466586, riot/trunk/riot-desktop.sh)
===================================================================
--- community-staging-any/riot-desktop.sh	                        (rev 0)
+++ community-staging-any/riot-desktop.sh	2019-05-12 15:00:51 UTC (rev 466587)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+electron /usr/lib/riot/ "$@"

Copied: riot/repos/community-staging-any/riot.desktop (from rev 466586, riot/trunk/riot.desktop)
===================================================================
--- community-staging-any/riot.desktop	                        (rev 0)
+++ community-staging-any/riot.desktop	2019-05-12 15:00:51 UTC (rev 466587)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Riot
+Comment=A feature-rich client for Matrix.org
+Exec="/usr/bin/riot-desktop"
+Terminal=false
+Type=Application
+Icon=riot
+StartupWMClass="Riot"
+Categories=Network;InstantMessaging;Chat;IRCClient



More information about the arch-commits mailing list