diff --git a/srcpkgs/element-desktop/template b/srcpkgs/element-desktop/template index 7dd3f717b7d..0231586c65f 100644 --- a/srcpkgs/element-desktop/template +++ b/srcpkgs/element-desktop/template @@ -1,6 +1,6 @@ # Template file for 'element-desktop' pkgname=element-desktop -version=1.11.5 +version=1.11.8 revision=1 create_wrksrc=yes conf_files="/etc/${pkgname}/config.json" @@ -17,8 +17,8 @@ homepage="https://element.io" changelog="https://raw.githubusercontent.com/vector-im/element-desktop/develop/CHANGELOG.md" 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="549540c80d26f1f8951a8e9b82e431a9db8686124c4f0b13e50e46a62b5388f2 - 08cd5542f7c9e9bb479b27fcf16247e75dfc80cdee5b0e3ee7c11a7fbe27d4a7" +checksum="541c01fdac38db2a4e7c058be5d2196ace0cd987c37f58a79631ec43c260182f + 9d9bb42a3d004ab4659d2945e6752aa278c59bc3b7f75919ce076bf3fb2b5f73" export USE_SYSTEM_APP_BUILDER=true @@ -36,6 +36,15 @@ pre_patch() { done } +post_patch() { + cd ${pkgname/desktop/web} + # Disable auto-updating + jq '.update_base_url = ""' element.io/app/config.json | sponge element.io/app/config.json + + cd ../${pkgname} + vsed -i 's/"target": "deb"/"target": "dir"/g' package.json +} + pre_build() { # since element 1.8.x it's necessary to force the npm arch # to x86, otherwise it will fail in electron js stuff on @@ -46,15 +55,12 @@ pre_build() { esac cd ${pkgname/desktop/web} - # Disable auto-updating - jq '.update_base_url = ""' element.io/app/config.json | sponge element.io/app/config.json # Build dependencies for element-web npm_config_arch=$carch yarn install # Build dependencies and alterations for element-desktop cd ../${pkgname} - vsed -i 's/"target": "deb"/"target": "dir"/g' package.json npm_config_arch=$carch yarn install }