Signal-Desktop: update to 1.12.1 (#101)
This commit is contained in:
parent
6d009f933a
commit
95dc494c65
|
@ -0,0 +1,10 @@
|
||||||
|
Kludge to work around https://github.com/signalapp/Signal-Desktop/issues/2376.
|
||||||
|
--- Gruntfile.js.orig 2018-05-15 01:57:11.000000000 +0200
|
||||||
|
+++ Gruntfile.js 2018-05-20 19:15:45.054357251 +0200
|
||||||
|
@@ -511,6 +511,5 @@
|
||||||
|
'concat',
|
||||||
|
'copy:deps',
|
||||||
|
'sass',
|
||||||
|
- 'date',
|
||||||
|
]);
|
||||||
|
};
|
|
@ -1,27 +1,24 @@
|
||||||
# Template file for 'Signal-Desktop'
|
# Template file for 'Signal-Desktop'
|
||||||
pkgname=Signal-Desktop
|
pkgname=Signal-Desktop
|
||||||
version=1.7.1
|
version=1.12.1
|
||||||
revision=1
|
revision=1
|
||||||
hostmakedepends="git python nodejs-lts"
|
hostmakedepends="git python nodejs-lts"
|
||||||
depends="libnotify libappindicator"
|
depends="libnotify libappindicator"
|
||||||
short_desc="Signal Private Messenger for Linux"
|
short_desc="Signal Private Messenger for Linux"
|
||||||
maintainer="Julio Galvan <juliogalvan@protonmail.com>"
|
maintainer="Julio Galvan <juliogalvan@protonmail.com>"
|
||||||
license="GPL-3"
|
license="GPL-3.0-only"
|
||||||
homepage="https://github.com/signalapp/Signal-Desktop"
|
homepage="https://github.com/signalapp/Signal-Desktop"
|
||||||
distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz"
|
distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz"
|
||||||
checksum=188fe8c17ccf49609467ab59ea6321beb7ee71e00da7b419249d205ebf80d13d
|
checksum=82ca68e0b912db19b4bc4d1bfb8b2d2f76e1d4393c4c1fa8ff950502883b18ac
|
||||||
# Due to electron
|
# Due to electron
|
||||||
only_for_archs="x86_64 i686"
|
only_for_archs="x86_64 i686"
|
||||||
nostrip_files="signal-desktop"
|
nostrip_files="signal-desktop"
|
||||||
|
|
||||||
post_extract() {
|
|
||||||
sed -i "s/'sass', 'date'/'sass'/g" Gruntfile.js
|
|
||||||
}
|
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
npm install -g yarn
|
npm install -g yarn
|
||||||
yarn install --ignore-engines
|
yarn install --ignore-engines
|
||||||
yarn pack-prod
|
yarn generate
|
||||||
|
yarn build-release --dir
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
@ -32,7 +29,7 @@ do_install() {
|
||||||
x86_64*) _ARCH="-";;
|
x86_64*) _ARCH="-";;
|
||||||
*) _ARCH="-${XBPS_TARGET_MACHINE%-musl}-";;
|
*) _ARCH="-${XBPS_TARGET_MACHINE%-musl}-";;
|
||||||
esac
|
esac
|
||||||
vcopy dist/linux${_ARCH}unpacked/* usr/share/signal-desktop
|
vcopy release/linux${_ARCH}unpacked/* usr/share/signal-desktop
|
||||||
|
|
||||||
vmkdir usr/bin
|
vmkdir usr/bin
|
||||||
ln -s /usr/share/signal-desktop/signal-desktop ${DESTDIR}/usr/bin/
|
ln -s /usr/share/signal-desktop/signal-desktop ${DESTDIR}/usr/bin/
|
||||||
|
@ -41,7 +38,7 @@ do_install() {
|
||||||
vcopy ${FILESDIR}/signal.desktop usr/share/applications/
|
vcopy ${FILESDIR}/signal.desktop usr/share/applications/
|
||||||
|
|
||||||
vmkdir usr/share/icons/hicolor
|
vmkdir usr/share/icons/hicolor
|
||||||
for size in 16 24 32 48 64 128 256 512; do
|
for size in 16 24 32 48 64 128 256 512 1024; do
|
||||||
vinstall build/icons/png/${size}x${size}.png 644 usr/share/icons/hicolor/${size}x${size}/apps/ signal.png
|
vinstall build/icons/png/${size}x${size}.png 644 usr/share/icons/hicolor/${size}x${size}/apps/ signal.png
|
||||||
done
|
done
|
||||||
npm remove -g yarn
|
npm remove -g yarn
|
||||||
|
|
Loading…
Reference in New Issue