riot-desktop: update to 1.5.7
This commit is contained in:
parent
b185a42ffd
commit
d4e63d81e2
2 changed files with 16 additions and 14 deletions
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
/usr/lib/riot-desktop/dist/electron /usr/lib/riot-desktop/electron_app "$@"
|
|
@ -1,18 +1,18 @@
|
|||
# Template file for 'riot-desktop'
|
||||
pkgname=riot-desktop
|
||||
version=1.5.6
|
||||
version=1.5.7
|
||||
revision=1
|
||||
archs="i686 x86_64"
|
||||
wrksrc="riot-web-${version}"
|
||||
conf_files="/etc/${pkgname}/config.json"
|
||||
hostmakedepends="git nodejs yarn"
|
||||
hostmakedepends="git yarn"
|
||||
depends="c-ares ffmpeg gtk+3 http-parser libevent libxslt minizip nss re2 snappy"
|
||||
short_desc="Glossy Matrix collaboration client, desktop version"
|
||||
maintainer="Bendodroid <bendodroid@icloud.com>"
|
||||
license="Apache-2.0"
|
||||
homepage="https://riot.im"
|
||||
distfiles="https://github.com/vector-im/riot-web/archive/v${version}.tar.gz"
|
||||
checksum=81716845e53cca31ce3dc6ed42640ec56279b9171db2709e3f6f81b93c415a6a
|
||||
checksum=c11436a2fb77a3b9edc46053c4de6886a4652020e1220780a2c8863edecf5992
|
||||
nocross=yes
|
||||
nostrip=yes
|
||||
shlib_provides="libGLVESv2.so"
|
||||
|
@ -21,23 +21,27 @@ case "$XBPS_TARGET_MACHINE" in
|
|||
i686*) broken="/void-packages/srcpkgs/riot-desktop/template: line 20: 390 Segmentation fault" ;;
|
||||
esac
|
||||
|
||||
pre_build() {
|
||||
vsed -i package.json -e 's|-l --x64|-l --x64 --dir|'
|
||||
yarn install --ignore-scripts
|
||||
cd node_modules/matrix-js-sdk
|
||||
yarn install --ignore-scripts
|
||||
cd ../matrix-react-sdk
|
||||
yarn install --ignore-scripts
|
||||
}
|
||||
|
||||
do_build() {
|
||||
npm install
|
||||
npm run build
|
||||
npm install electron
|
||||
npm run install:electron
|
||||
yarn build:electron:linux
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vmkdir usr/lib/riot-desktop
|
||||
vmkdir etc/riot-desktop
|
||||
vcopy node_modules/electron/dist /usr/lib/riot-desktop/
|
||||
vcopy electron_app /usr/lib/riot-desktop/
|
||||
vcopy webapp /usr/lib/riot-desktop
|
||||
vcopy origin_migrator /usr/lib/riot-desktop
|
||||
vcopy electron_app/dist/linux-unpacked/* /usr/lib/riot-desktop
|
||||
vinstall config.sample.json 664 /etc/riot-desktop/ config.json
|
||||
ln -s /etc/riot-desktop/config.json $DESTDIR/usr/lib/riot-desktop/config.json
|
||||
vbin ${FILESDIR}/riot-desktop.sh riot-desktop
|
||||
vmkdir usr/bin
|
||||
ln -s /usr/lib/riot-desktop/riot-web $DESTDIR/usr/bin/riot-desktop
|
||||
vinstall ${FILESDIR}/riot-desktop.desktop 644 /usr/share/applications/ riot-desktop.desktop
|
||||
vinstall res/themes/riot/img/logos/riot-im-logo.svg 644 /usr/share/icons/hicolor/scalable/apps/ riot.svg
|
||||
for i in 16 24 48 64 96 128 256 512; do
|
||||
|
|
Loading…
Reference in a new issue