2018-03-23 20:54:26 +01:00
|
|
|
# Template file for 'Signal-Desktop'
|
|
|
|
pkgname=Signal-Desktop
|
2018-08-01 09:57:55 +02:00
|
|
|
version=1.14.4
|
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-08-01 09:57:55 +02:00
|
|
|
checksum=538c50de7fb2bd442e470f5128a76ddb07490f612a597183d342a95f26b89940
|
2018-03-23 20:54:26 +01:00
|
|
|
# Due to electron
|
|
|
|
only_for_archs="x86_64 i686"
|
|
|
|
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
|
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
i686*) _ARCH="-ia32-";;
|
|
|
|
x86_64*) _ARCH="-";;
|
|
|
|
esac
|
2018-06-22 21:30:24 +02:00
|
|
|
vcopy release/linux${_ARCH}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
|
|
|
|
}
|