Репозиторий Sisyphus
Последнее обновление: 3 марта 2021 | Пакетов: 17840 | Посещений: 20387396
en ru br
Репозитории ALT

Группа :: Сети/Мгновенные сообщения
Пакет: riot-desktop

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: riot-desktop
Version: 1.2.1
Release: alt1

Summary: A glossy Matrix collaboration client

License: Apache 2.0
Url: https://riot.im/desktop.html
Group: Networking/Instant messaging

BuildArch: noarch

# Source-url: https://github.com/vector-im/riot-web/archive/v%version.tar.gz

Source: %name-%version.tar

# auto predownloaded node modules during update version with rpmgs from etersoft-build-utils

# ask me about description using: lav at etersoft.ru
Source1: %name-development-%version.tar
Source4: %name-production-%version.tar

Source2: %name-app-node_modules-%version.tar

Source3: riot-desktop.desktop

AutoReq:yes,nonodejs,nonodejs_native,nomono,nopython,nomingw32,nomingw64,noshebang
#AutoProv: no

BuildRequires: npm node-asar
# https://github.com/yarnpkg/yarn/issues/7251
BuildRequires: /proc yarn

%description
Riot (formerly known as Vector) is a Matrix web client built using the Matrix React SDK.

%prep
%setup -a1 -a2 -a4
rm -f scripts/check-i18n.pl

%build
# note: configure it
cat electron_app/riot.im/config.json | grep -v "update_base_url" > config.json
npm run build
#npm prune --production
#npm ERR! cb() never called!
#npm ERR! This is an error with npm itself. Please report this error at:
rm -rf node_modules/ && mv production/node_modules ./
asar pack . resources/app.asar

cat <<EOF >%name
#!/bin/sh
electron %_datadir/%name/resources/app.asar "\$ at "
EOF

%install
install -m755 -D %name %buildroot%_bindir/%name
ln -s riot-desktop %buildroot/%_bindir/riot

mkdir -p %buildroot%_datadir/%name/
cp -a resources %buildroot%_datadir/%name/

for i in 16 22 24 32 48 64 128 256 512 ; do
   F=electron_app/build/icons/${i}x${i}.png
   [ -s "$F" ] || continue
   T=%buildroot%_iconsdir/hicolor/${i}x${i}/apps/
   mkdir -p $T/
   cp $F $T/%name.png
done

install -D -m644 %SOURCE3 %buildroot%_desktopdir/%name.desktop

%files
%_bindir/riot
%_bindir/riot-desktop
%_datadir/%name/
%_desktopdir/%name.desktop
%_iconsdir/hicolor/*/apps/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin