void-packages/srcpkgs/Signal-Desktop/template

40 lines
1.2 KiB
Bash

# Template file for 'Signal-Desktop'
pkgname=Signal-Desktop
version=1.19.0
revision=1
# Due to electron
# 32-bit is not supported https://github.com/signalapp/Signal-Desktop/issues/1661
only_for_archs="x86_64"
hostmakedepends="git python nodejs-lts yarn"
depends="libnotify libappindicator"
short_desc="Signal Private Messenger for Linux"
maintainer="Julio Galvan <juliogalvan@protonmail.com>"
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=7c1e8f598a0e34a28bc9a66a5f59e03c3dba0a0c952f5257d1ad66bf0a3a9fa7
nostrip_files="signal-desktop"
do_build() {
yarn install --ignore-engines
yarn grunt
yarn build-release --dir
}
do_install() {
vmkdir usr/share/signal-desktop
vcopy release/linux-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 32 48 128 256 1024; do
vinstall images/icon_${size}.png 644 usr/share/icons/hicolor/${size}x${size}/apps/ signal.png
done
}