# Template file for 'Signal-Desktop' pkgname=Signal-Desktop version=1.12.1 revision=1 hostmakedepends="git python nodejs-lts" depends="libnotify libappindicator" short_desc="Signal Private Messenger for Linux" maintainer="Julio Galvan " license="GPL-3.0-only" homepage="https://github.com/signalapp/Signal-Desktop" distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz" checksum=82ca68e0b912db19b4bc4d1bfb8b2d2f76e1d4393c4c1fa8ff950502883b18ac # Due to electron only_for_archs="x86_64 i686" nostrip_files="signal-desktop" broken="https://build.voidlinux.eu/builders/x86_64_builder/builds/9800/steps/shell_3/logs/stdio" do_build() { npm install -g yarn yarn install --ignore-engines yarn generate yarn build-release --dir } do_install() { vmkdir usr/share/signal-desktop case "$XBPS_TARGET_MACHINE" in i686*) _ARCH="-ia32-";; x86_64*) _ARCH="-";; *) _ARCH="-${XBPS_TARGET_MACHINE%-musl}-";; esac vcopy release/linux${_ARCH}unpacked/* usr/share/signal-desktop vmkdir usr/bin ln -s /usr/share/signal-desktop/signal-desktop ${DESTDIR}/usr/bin/ vmkdir usr/share/applications vcopy ${FILESDIR}/signal.desktop usr/share/applications/ vmkdir usr/share/icons/hicolor for size in 16 24 32 48 64 128 256 512 1024; do vinstall build/icons/png/${size}x${size}.png 644 usr/share/icons/hicolor/${size}x${size}/apps/ signal.png done npm remove -g yarn }