They switched from spellchecker to typo-js in
https://github.com/signalapp/Signal-Desktop/commit/9e9401693c
so changes in commit b7e6be3f
are no longer required.
43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'Signal-Desktop'
|
|
pkgname=Signal-Desktop
|
|
version=1.33.3
|
|
revision=1
|
|
# Due to electron
|
|
# 32-bit is not supported https://github.com/signalapp/Signal-Desktop/issues/1661
|
|
archs="x86_64"
|
|
hostmakedepends="git nodejs python tar 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="964ba12e2a4128aa9f5c42e181c073ab14225628fd8fddb8dbb442ed66f0996c"
|
|
nostrip_files="signal-desktop"
|
|
|
|
pre_build() {
|
|
vsed -e 's/"node": "/&>=/' -i package.json
|
|
}
|
|
|
|
do_build() {
|
|
yarn install --ignore-engines
|
|
yarn grunt
|
|
yarn build-release --dir
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/lib/signal-desktop
|
|
|
|
vcopy release/linux-unpacked/* usr/lib/signal-desktop
|
|
|
|
vmkdir usr/bin
|
|
ln -s /usr/lib/signal-desktop/signal-desktop ${DESTDIR}/usr/bin/
|
|
|
|
vmkdir usr/share/applications
|
|
vinstall ${FILESDIR}/signal.desktop 644 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
|
|
}
|