element-desktop: update to 1.7.3.

This commit is contained in:
projectmoon 2020-07-28 20:53:42 +02:00 committed by Piotr
parent 35a38d2f2d
commit 037cb33e69

View file

@ -1,9 +1,9 @@
# Template file for 'element-desktop'
pkgname=element-desktop
version=1.7.1
version=1.7.3
revision=1
archs="x86_64"
wrksrc="riot-web-${version}"
wrksrc="element-web-${version}"
conf_files="/etc/${pkgname}/config.json"
hostmakedepends="git yarn nodejs rust cargo python sqlcipher-devel curl libappindicator-devel libnotify-devel pkg-config"
makedepends="libsecret-devel"
@ -12,9 +12,9 @@ short_desc="Glossy Matrix collaboration client, desktop version"
maintainer="projectmoon <projectmoon@agnos.is>"
license="Apache-2.0"
homepage="https://element.io"
distfiles="https://github.com/vector-im/riot-desktop/archive/v${version}.tar.gz>riot-desktop.tar.gz https://github.com/vector-im/riot-web/archive/v${version}.tar.gz>riot-web.tar.gz"
checksum="6d92437d3cd3d7846a21616a98759e9d0c1cabd07bcbbedf1e933c1baf55b287
e26ad0d5ce192de4dfe29dd0cee296dddf77c043ae6e23ffcc6fc5c5fdb959b2"
distfiles="https://github.com/vector-im/element-desktop/archive/v${version}.tar.gz>element-desktop.tar.gz https://github.com/vector-im/element-web/archive/v${version}.tar.gz>element-web.tar.gz"
checksum="8737925f23c6c8e352047e6c077c1141176e18724d7f82d0456855bcfd2faab1
dc948f4083c549476f8c4c8b8a55dbf0ea99684ea2a355191d8dcb6861576632"
nocross=yes
nostrip=yes
@ -22,8 +22,8 @@ pre_build() {
# Build dependencies for riot-web
yarn install
# Build dependencies and alterations for riot-desktop
cd ../riot-desktop-${version}
# Build dependencies and alterations for element-desktop
cd ../element-desktop-${version}
# Disable auto-updating
sed -i 's@https://packages.riot.im/desktop/update/@null@g' element.io/release/config.json
sed -i 's/"target": "deb"/"target": "dir"/g' package.json
@ -32,7 +32,7 @@ pre_build() {
do_build() {
yarn build
cd ../riot-desktop-${version}
cd ../element-desktop-${version}
yarn run build:native
yarn run build
}
@ -40,7 +40,7 @@ do_build() {
do_install() {
vmkdir usr/lib/element-desktop
vmkdir etc/element-desktop
vcopy ../riot-desktop-${version}/dist/linux-unpacked/* /usr/lib/element-desktop
vcopy ../element-desktop-${version}/dist/linux-unpacked/* /usr/lib/element-desktop
vinstall config.sample.json 644 /etc/element-desktop/ config.json
vcopy webapp /usr/lib/element-desktop/resources
ln -s /etc/element-desktop/config.json $DESTDIR/usr/lib/element-desktop/resources/webapp/config.json
@ -52,7 +52,7 @@ do_install() {
vinstall webapp/themes/element/img/logos/element-logo.svg 644 /usr/share/icons/hicolor/scalable/apps/ element.svg
for i in 16 24 48 64 96 128 256 512; do
vinstall ../riot-desktop-${version}/build/icons/${i}x${i}.png 644 /usr/share/icons/hicolor/${i}x${i}/apps/ element.png
vinstall ../element-desktop-${version}/build/icons/${i}x${i}.png 644 /usr/share/icons/hicolor/${i}x${i}/apps/ element.png
done
}