Date: Monday, May 22, 2017 @ 13:47:36 Author: archange Revision: 229106
Initial import of riot from the AUR Update to 0.9.10 (from 0.9.7). Fix riot-desktop.sh to accept supplemental arguments. Added: riot/ riot/repos/ riot/trunk/ riot/trunk/PKGBUILD riot/trunk/riot-desktop.sh riot/trunk/riot.desktop -----------------+ PKGBUILD | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ riot-desktop.sh | 3 ++ riot.desktop | 9 ++++++ 3 files changed, 90 insertions(+) Added: riot/trunk/PKGBUILD =================================================================== --- riot/trunk/PKGBUILD (rev 0) +++ riot/trunk/PKGBUILD 2017-05-22 13:47:36 UTC (rev 229106) @@ -0,0 +1,78 @@ +# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archa...@archlinux.org> +# Contributor: Luca Weiss <luca (at) z3ntu (dot) xyz> + +pkgbase=riot +pkgname=('riot-desktop' 'riot-web') +pkgver=0.9.10 +pkgrel=1 +pkgdesc="A glossy Matrix collaboration client, web and desktop versions." +arch=('any') +url="https://riot.im" +_url="https://github.com/vector-im/riot-web" +license=('Apache') +makedepends=('npm' 'git' 'phantomjs') +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") +sha256sums=('fb79dc2dcaf9613895bdee87f558c74c3a646511b2459cdc6a038250e97f6bc9' + 'SKIP' + '043fbaa29be96f52541143e1684fd7ba33585edb215c06d1ed4e59ddc48a9fa7' + 'cb7304188845e3be24966b3a8bca5763f4d1b0055a0afa1a17a60917556caaf0') +validpgpkeys=('6FEB6F83D48B93547E7DFEDEE019645248E8F4A1') # riot.im (Package Signing key) <packa...@riot.im> + +prepare() { + cd ${pkgbase}-web-${pkgver} + sed -i 's@https://riot.im/download/desktop/update/@null@g' electron_app/riot.im/config.json +} + +build() { + cd ${pkgbase}-web-${pkgver} + npm install --cache "${srcdir}/npm-cache" + npm run build --cache "${srcdir}/npm-cache" +} + +package_riot-web() { + pkgdesc="A glossy Matrix collaboration client for the web." + provides=('vector-web') # @vith + replaces=('vector-web') # @vith + 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') + optdepends=('libappindicator-gtk3: tray icon support') + backup=("etc/${pkgbase}/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 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 src/skins/vector/img/logos/${pkgbase}-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 +} Added: riot/trunk/riot-desktop.sh =================================================================== --- riot/trunk/riot-desktop.sh (rev 0) +++ riot/trunk/riot-desktop.sh 2017-05-22 13:47:36 UTC (rev 229106) @@ -0,0 +1,3 @@ +#!/bin/bash + +electron /usr/lib/riot/ $@ Property changes on: riot/trunk/riot-desktop.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: riot/trunk/riot.desktop =================================================================== --- riot/trunk/riot.desktop (rev 0) +++ riot/trunk/riot.desktop 2017-05-22 13:47:36 UTC (rev 229106) @@ -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