40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Template file for 'Signal-Desktop'
|
|
pkgname=Signal-Desktop
|
|
version=1.18.0
|
|
revision=1
|
|
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=db0adab206282504ce2ed768f0365f13db06d7a144bedb36cfe55f6d6777db59
|
|
# Due to electron
|
|
# 32-bit is not supported https://github.com/signalapp/Signal-Desktop/issues/1661
|
|
only_for_archs="x86_64"
|
|
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
|
|
}
|