# Template file for 'Rocket.Chat-Desktop' pkgname=Rocket.Chat-Desktop version=3.2.2 revision=1 _electron_ver=10 wrksrc="Rocket.Chat.Electron-${version}" hostmakedepends="yarn nodejs-lts python3 pkg-config app-builder" makedepends="electron${_electron_ver} libvips-devel" depends="electron${_electron_ver}" short_desc="Rocket.Chat Native Cross-Platform Desktop Application via Electron" maintainer="John " license="MIT" homepage="https://rocket.chat/" distfiles="https://github.com/RocketChat/Rocket.Chat.Electron/archive/${version}.tar.gz" checksum=abbe4687972884c3e073f72e81cb04c8fdb89cdb3b83af3ec9564860adb72372 export USE_SYSTEM_APP_BUILDER=true do_configure() { # we can't make electron skip binary download as that fails in do_build # so instead, force a bogus architecture so it downloads its binary # artifact, it will use the system one later anyway # but this appears to fail on i686, so don't override there local carch=x64 case "$XBPS_TARGET_MACHINE" in i686*) carch=ia32 ;; esac npm_config_arch=$carch \ yarn upgrade electron@"$(