2018-03-23 20:54:26 +01:00
|
|
|
# Template file for 'Signal-Desktop'
|
|
|
|
pkgname=Signal-Desktop
|
2018-11-15 14:21:36 +01:00
|
|
|
version=1.18.0
|
2018-03-23 20:54:26 +01:00
|
|
|
revision=1
|
2018-08-01 09:57:55 +02:00
|
|
|
hostmakedepends="git python nodejs-lts yarn"
|
2018-03-23 20:54:26 +01:00
|
|
|
depends="libnotify libappindicator"
|
|
|
|
short_desc="Signal Private Messenger for Linux"
|
|
|
|
maintainer="Julio Galvan <juliogalvan@protonmail.com>"
|
2018-06-22 21:30:24 +02:00
|
|
|
license="GPL-3.0-only"
|
2018-03-23 20:54:26 +01:00
|
|
|
homepage="https://github.com/signalapp/Signal-Desktop"
|
|
|
|
distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz"
|
2018-11-15 14:21:36 +01:00
|
|
|
checksum=db0adab206282504ce2ed768f0365f13db06d7a144bedb36cfe55f6d6777db59
|
2018-03-23 20:54:26 +01:00
|
|
|
# Due to electron
|
2018-11-15 14:21:36 +01:00
|
|
|
# 32-bit is not supported https://github.com/signalapp/Signal-Desktop/issues/1661
|
|
|
|
only_for_archs="x86_64"
|
2018-03-23 20:54:26 +01:00
|
|
|
nostrip_files="signal-desktop"
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
yarn install --ignore-engines
|
2018-07-15 06:53:18 +02:00
|
|
|
yarn grunt
|
2018-06-22 21:30:24 +02:00
|
|
|
yarn build-release --dir
|
2018-03-23 20:54:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir usr/share/signal-desktop
|
|
|
|
|
2018-11-15 14:21:36 +01:00
|
|
|
vcopy release/linux-unpacked/* usr/share/signal-desktop
|
2018-03-23 20:54:26 +01:00
|
|
|
|
|
|
|
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
|
2018-07-15 06:53:18 +02:00
|
|
|
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
|
2018-03-23 20:54:26 +01:00
|
|
|
done
|
|
|
|
}
|