Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Signal-Desktop: update to 5.4.1.
@ 2021-06-16  7:57 reedts
  2021-06-22  8:43 ` [PR PATCH] [Updated] " reedts
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: reedts @ 2021-06-16  7:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1601 bytes --]

There is a new pull request by reedts against master on the void-packages repository

https://github.com/reedts/void-packages signal-v5.4.1
https://github.com/void-linux/void-packages/pull/31521

Signal-Desktop: update to 5.4.1.
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/31521.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-signal-v5.4.1-31521.patch --]
[-- Type: text/x-diff, Size: 4256 bytes --]

From 91e10fa049e2eee343917f2fa721d4447b0a866f Mon Sep 17 00:00:00 2001
From: reedts <j.reedts@gmail.com>
Date: Wed, 16 Jun 2021 09:56:32 +0200
Subject: [PATCH] Signal-Desktop: update to 5.4.1.

---
 .../patches/build-from-tarball.patch          |  9 -----
 .../expire-from-source-date-epoch.patch       | 13 +++++++
 srcpkgs/Signal-Desktop/template               | 35 +++++++++++++------
 3 files changed, 38 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
 create mode 100644 srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch

diff --git a/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch b/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
deleted file mode 100644
index e8c3db0e087e..000000000000
--- a/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
+++ /dev/null
@@ -1,9 +0,0 @@
---- Gruntfile.js.orig	2020-04-26 23:32:09.861789510 +0200
-+++ Gruntfile.js	2020-04-26 23:32:21.424734031 +0200
-@@ -452,6 +452,5 @@
-     'concat',
-     'copy:deps',
-     'sass',
--    'date',
-   ]);
- };
diff --git a/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch b/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch
new file mode 100644
index 000000000000..a8a11ab72c45
--- /dev/null
+++ b/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch
@@ -0,0 +1,13 @@
+--- Gruntfile.js
++++ Gruntfile.js
+@@ -203,9 +203,7 @@ module.exports = grunt => {
+   });
+ 
+   grunt.registerTask('getExpireTime', () => {
+-    grunt.task.requires('gitinfo');
+-    const gitinfo = grunt.config.get('gitinfo');
+-    const committed = gitinfo.local.branch.current.lastCommitTime;
++    const committed = parseInt(process.env.SOURCE_DATE_EPOCH, 10) * 1000;
+     const time = Date.parse(committed) + 1000 * 60 * 60 * 24 * 90;
+     grunt.file.write(
+       'config/local-production.json',
diff --git a/srcpkgs/Signal-Desktop/template b/srcpkgs/Signal-Desktop/template
index 8999b6e483ff..43af7b54ce62 100644
--- a/srcpkgs/Signal-Desktop/template
+++ b/srcpkgs/Signal-Desktop/template
@@ -1,32 +1,45 @@
 # Template file for 'Signal-Desktop'
 pkgname=Signal-Desktop
-version=1.39.5
+version=5.4.1
 revision=1
-# Due to electron
+# Signal officially only supports x86_64 (also due to Electron)
+# discontinued Electron 32-bit support: https://www.electronjs.org/blog/linux-32bit-support
 # 32-bit is not supported https://github.com/signalapp/Signal-Desktop/issues/1661
+# armv7hf/arm64: https://github.com/signalapp/Signal-Desktop/issues/3410
 archs="x86_64"
-hostmakedepends="git nodejs python tar yarn"
-depends="libnotify libappindicator"
+hostmakedepends="git git-lfs nodejs python3 tar yarn"
+depends="cairo gtk+3 libvips pango"
 short_desc="Signal Private Messenger for Linux"
 maintainer="Julio Galvan <juliogalvan@protonmail.com>"
-license="GPL-3.0-only"
+license="AGPL-3.0-only"
 homepage="https://github.com/signalapp/Signal-Desktop"
 distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz"
-checksum=f9f55c0195579b43712bf370b753337432eda4bcf89809d1c8f3deb0b4ee4400
+checksum=60c3772c5951d95469e2ab491b2f09d7ee93c998909de8cb169e23b461b7ebbc
 nostrip_files="signal-desktop"
 
-pre_build() {
-	vsed -e 's/"node": "/&>=/' -i package.json
+post_extract() {
+	# git-lfs hook needs to be installed for one of the dependencies
+	git lfs install
+
+	vsed 's/"node": "/&>=/' -i package.json
+	
+	# Dependencies have to be installed before applying patch
+	yarn install --ignore-engines --frozen-lockfile
 }
 
 do_build() {
-	yarn install --ignore-engines
 	yarn grunt
-	yarn build-release --dir
+	yarn generate
+	yarn build-release
 }
 
 do_install() {
 	vmkdir usr/lib/signal-desktop
+	
+	# Remove prebuilt binaries for foreign architectures (to not confuse strip)
+	for prebin in darwin-x64 linux-arm64 win32-ia32 win32-x64; do
+		rm -rf release/linux-unpacked/resources/app.asar.unpacked/node_modules/{ffi-napi,ref-napi}/prebuilds/$prebin
+	done
 
 	vcopy release/linux-unpacked/* usr/lib/signal-desktop
 
@@ -40,4 +53,6 @@ do_install() {
 	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
+
+	vlicense LICENSE
 }

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Updated] Signal-Desktop: update to 5.4.1.
  2021-06-16  7:57 [PR PATCH] Signal-Desktop: update to 5.4.1 reedts
@ 2021-06-22  8:43 ` reedts
  2021-06-24 22:24 ` ScrelliCopter
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reedts @ 2021-06-22  8:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1606 bytes --]

There is an updated pull request by reedts against master on the void-packages repository

https://github.com/reedts/void-packages signal-v5.4.1
https://github.com/void-linux/void-packages/pull/31521

Signal-Desktop: update to 5.4.1.
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/31521.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-signal-v5.4.1-31521.patch --]
[-- Type: text/x-diff, Size: 5300 bytes --]

From 91e10fa049e2eee343917f2fa721d4447b0a866f Mon Sep 17 00:00:00 2001
From: reedts <j.reedts@gmail.com>
Date: Wed, 16 Jun 2021 09:56:32 +0200
Subject: [PATCH 1/2] Signal-Desktop: update to 5.4.1.

---
 .../patches/build-from-tarball.patch          |  9 -----
 .../expire-from-source-date-epoch.patch       | 13 +++++++
 srcpkgs/Signal-Desktop/template               | 35 +++++++++++++------
 3 files changed, 38 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
 create mode 100644 srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch

diff --git a/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch b/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
deleted file mode 100644
index e8c3db0e087e..000000000000
--- a/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
+++ /dev/null
@@ -1,9 +0,0 @@
---- Gruntfile.js.orig	2020-04-26 23:32:09.861789510 +0200
-+++ Gruntfile.js	2020-04-26 23:32:21.424734031 +0200
-@@ -452,6 +452,5 @@
-     'concat',
-     'copy:deps',
-     'sass',
--    'date',
-   ]);
- };
diff --git a/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch b/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch
new file mode 100644
index 000000000000..a8a11ab72c45
--- /dev/null
+++ b/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch
@@ -0,0 +1,13 @@
+--- Gruntfile.js
++++ Gruntfile.js
+@@ -203,9 +203,7 @@ module.exports = grunt => {
+   });
+ 
+   grunt.registerTask('getExpireTime', () => {
+-    grunt.task.requires('gitinfo');
+-    const gitinfo = grunt.config.get('gitinfo');
+-    const committed = gitinfo.local.branch.current.lastCommitTime;
++    const committed = parseInt(process.env.SOURCE_DATE_EPOCH, 10) * 1000;
+     const time = Date.parse(committed) + 1000 * 60 * 60 * 24 * 90;
+     grunt.file.write(
+       'config/local-production.json',
diff --git a/srcpkgs/Signal-Desktop/template b/srcpkgs/Signal-Desktop/template
index 8999b6e483ff..43af7b54ce62 100644
--- a/srcpkgs/Signal-Desktop/template
+++ b/srcpkgs/Signal-Desktop/template
@@ -1,32 +1,45 @@
 # Template file for 'Signal-Desktop'
 pkgname=Signal-Desktop
-version=1.39.5
+version=5.4.1
 revision=1
-# Due to electron
+# Signal officially only supports x86_64 (also due to Electron)
+# discontinued Electron 32-bit support: https://www.electronjs.org/blog/linux-32bit-support
 # 32-bit is not supported https://github.com/signalapp/Signal-Desktop/issues/1661
+# armv7hf/arm64: https://github.com/signalapp/Signal-Desktop/issues/3410
 archs="x86_64"
-hostmakedepends="git nodejs python tar yarn"
-depends="libnotify libappindicator"
+hostmakedepends="git git-lfs nodejs python3 tar yarn"
+depends="cairo gtk+3 libvips pango"
 short_desc="Signal Private Messenger for Linux"
 maintainer="Julio Galvan <juliogalvan@protonmail.com>"
-license="GPL-3.0-only"
+license="AGPL-3.0-only"
 homepage="https://github.com/signalapp/Signal-Desktop"
 distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz"
-checksum=f9f55c0195579b43712bf370b753337432eda4bcf89809d1c8f3deb0b4ee4400
+checksum=60c3772c5951d95469e2ab491b2f09d7ee93c998909de8cb169e23b461b7ebbc
 nostrip_files="signal-desktop"
 
-pre_build() {
-	vsed -e 's/"node": "/&>=/' -i package.json
+post_extract() {
+	# git-lfs hook needs to be installed for one of the dependencies
+	git lfs install
+
+	vsed 's/"node": "/&>=/' -i package.json
+	
+	# Dependencies have to be installed before applying patch
+	yarn install --ignore-engines --frozen-lockfile
 }
 
 do_build() {
-	yarn install --ignore-engines
 	yarn grunt
-	yarn build-release --dir
+	yarn generate
+	yarn build-release
 }
 
 do_install() {
 	vmkdir usr/lib/signal-desktop
+	
+	# Remove prebuilt binaries for foreign architectures (to not confuse strip)
+	for prebin in darwin-x64 linux-arm64 win32-ia32 win32-x64; do
+		rm -rf release/linux-unpacked/resources/app.asar.unpacked/node_modules/{ffi-napi,ref-napi}/prebuilds/$prebin
+	done
 
 	vcopy release/linux-unpacked/* usr/lib/signal-desktop
 
@@ -40,4 +53,6 @@ do_install() {
 	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
+
+	vlicense LICENSE
 }

From 8dee2c454928980ea6b175e303bc676724e9ce35 Mon Sep 17 00:00:00 2001
From: reedts <j.reedts@gmail.com>
Date: Tue, 22 Jun 2021 10:43:17 +0200
Subject: [PATCH 2/2] Remove trailing whitespaces

---
 srcpkgs/Signal-Desktop/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/Signal-Desktop/template b/srcpkgs/Signal-Desktop/template
index 43af7b54ce62..7a869e906a43 100644
--- a/srcpkgs/Signal-Desktop/template
+++ b/srcpkgs/Signal-Desktop/template
@@ -22,7 +22,7 @@ post_extract() {
 	git lfs install
 
 	vsed 's/"node": "/&>=/' -i package.json
-	
+
 	# Dependencies have to be installed before applying patch
 	yarn install --ignore-engines --frozen-lockfile
 }
@@ -35,7 +35,7 @@ do_build() {
 
 do_install() {
 	vmkdir usr/lib/signal-desktop
-	
+
 	# Remove prebuilt binaries for foreign architectures (to not confuse strip)
 	for prebin in darwin-x64 linux-arm64 win32-ia32 win32-x64; do
 		rm -rf release/linux-unpacked/resources/app.asar.unpacked/node_modules/{ffi-napi,ref-napi}/prebuilds/$prebin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Signal-Desktop: update to 5.4.1.
  2021-06-16  7:57 [PR PATCH] Signal-Desktop: update to 5.4.1 reedts
  2021-06-22  8:43 ` [PR PATCH] [Updated] " reedts
@ 2021-06-24 22:24 ` ScrelliCopter
  2021-06-25  6:50 ` [PR PATCH] [Updated] " reedts
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ScrelliCopter @ 2021-06-24 22:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

New comment by ScrelliCopter on void-packages repository

https://github.com/void-linux/void-packages/pull/31521#issuecomment-867992956

Comment:
Works for me :)
Please squash your second commit into your first and rebase on master.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Updated] Signal-Desktop: update to 5.4.1.
  2021-06-16  7:57 [PR PATCH] Signal-Desktop: update to 5.4.1 reedts
  2021-06-22  8:43 ` [PR PATCH] [Updated] " reedts
  2021-06-24 22:24 ` ScrelliCopter
@ 2021-06-25  6:50 ` reedts
  2021-06-25  6:51 ` reedts
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reedts @ 2021-06-25  6:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1606 bytes --]

There is an updated pull request by reedts against master on the void-packages repository

https://github.com/reedts/void-packages signal-v5.4.1
https://github.com/void-linux/void-packages/pull/31521

Signal-Desktop: update to 5.4.1.
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/31521.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-signal-v5.4.1-31521.patch --]
[-- Type: text/x-diff, Size: 4270 bytes --]

From c90e3eab463de47a78690afc73f18656fa6593b9 Mon Sep 17 00:00:00 2001
From: reedts <j.reedts@gmail.com>
Date: Wed, 16 Jun 2021 09:56:32 +0200
Subject: [PATCH] Signal-Desktop: update to 5.4.1.

---
 .../patches/build-from-tarball.patch          |  9 -----
 .../expire-from-source-date-epoch.patch       | 13 +++++++
 srcpkgs/Signal-Desktop/template               | 35 +++++++++++++------
 3 files changed, 38 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
 create mode 100644 srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch

diff --git a/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch b/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
deleted file mode 100644
index cab451f7f35c..000000000000
--- a/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
+++ /dev/null
@@ -1,9 +0,0 @@
---- a/Gruntfile.js	2020-04-26 23:32:09.861789510 +0200
-+++ b/Gruntfile.js	2020-04-26 23:32:21.424734031 +0200
-@@ -452,6 +452,5 @@
-     'concat',
-     'copy:deps',
-     'sass',
--    'date',
-   ]);
- };
diff --git a/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch b/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch
new file mode 100644
index 000000000000..a8a11ab72c45
--- /dev/null
+++ b/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch
@@ -0,0 +1,13 @@
+--- Gruntfile.js
++++ Gruntfile.js
+@@ -203,9 +203,7 @@ module.exports = grunt => {
+   });
+ 
+   grunt.registerTask('getExpireTime', () => {
+-    grunt.task.requires('gitinfo');
+-    const gitinfo = grunt.config.get('gitinfo');
+-    const committed = gitinfo.local.branch.current.lastCommitTime;
++    const committed = parseInt(process.env.SOURCE_DATE_EPOCH, 10) * 1000;
+     const time = Date.parse(committed) + 1000 * 60 * 60 * 24 * 90;
+     grunt.file.write(
+       'config/local-production.json',
diff --git a/srcpkgs/Signal-Desktop/template b/srcpkgs/Signal-Desktop/template
index 8999b6e483ff..7a869e906a43 100644
--- a/srcpkgs/Signal-Desktop/template
+++ b/srcpkgs/Signal-Desktop/template
@@ -1,33 +1,46 @@
 # Template file for 'Signal-Desktop'
 pkgname=Signal-Desktop
-version=1.39.5
+version=5.4.1
 revision=1
-# Due to electron
+# Signal officially only supports x86_64 (also due to Electron)
+# discontinued Electron 32-bit support: https://www.electronjs.org/blog/linux-32bit-support
 # 32-bit is not supported https://github.com/signalapp/Signal-Desktop/issues/1661
+# armv7hf/arm64: https://github.com/signalapp/Signal-Desktop/issues/3410
 archs="x86_64"
-hostmakedepends="git nodejs python tar yarn"
-depends="libnotify libappindicator"
+hostmakedepends="git git-lfs nodejs python3 tar yarn"
+depends="cairo gtk+3 libvips pango"
 short_desc="Signal Private Messenger for Linux"
 maintainer="Julio Galvan <juliogalvan@protonmail.com>"
-license="GPL-3.0-only"
+license="AGPL-3.0-only"
 homepage="https://github.com/signalapp/Signal-Desktop"
 distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz"
-checksum=f9f55c0195579b43712bf370b753337432eda4bcf89809d1c8f3deb0b4ee4400
+checksum=60c3772c5951d95469e2ab491b2f09d7ee93c998909de8cb169e23b461b7ebbc
 nostrip_files="signal-desktop"
 
-pre_build() {
-	vsed -e 's/"node": "/&>=/' -i package.json
+post_extract() {
+	# git-lfs hook needs to be installed for one of the dependencies
+	git lfs install
+
+	vsed 's/"node": "/&>=/' -i package.json
+
+	# Dependencies have to be installed before applying patch
+	yarn install --ignore-engines --frozen-lockfile
 }
 
 do_build() {
-	yarn install --ignore-engines
 	yarn grunt
-	yarn build-release --dir
+	yarn generate
+	yarn build-release
 }
 
 do_install() {
 	vmkdir usr/lib/signal-desktop
 
+	# Remove prebuilt binaries for foreign architectures (to not confuse strip)
+	for prebin in darwin-x64 linux-arm64 win32-ia32 win32-x64; do
+		rm -rf release/linux-unpacked/resources/app.asar.unpacked/node_modules/{ffi-napi,ref-napi}/prebuilds/$prebin
+	done
+
 	vcopy release/linux-unpacked/* usr/lib/signal-desktop
 
 	vmkdir usr/bin
@@ -40,4 +53,6 @@ do_install() {
 	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
+
+	vlicense LICENSE
 }

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Signal-Desktop: update to 5.4.1.
  2021-06-16  7:57 [PR PATCH] Signal-Desktop: update to 5.4.1 reedts
                   ` (2 preceding siblings ...)
  2021-06-25  6:50 ` [PR PATCH] [Updated] " reedts
@ 2021-06-25  6:51 ` reedts
  2021-06-27 12:33 ` Veganizer
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reedts @ 2021-06-25  6:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

New comment by reedts on void-packages repository

https://github.com/void-linux/void-packages/pull/31521#issuecomment-868268319

Comment:
@ScrelliCopter Done :)!

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Signal-Desktop: update to 5.4.1.
  2021-06-16  7:57 [PR PATCH] Signal-Desktop: update to 5.4.1 reedts
                   ` (3 preceding siblings ...)
  2021-06-25  6:51 ` reedts
@ 2021-06-27 12:33 ` Veganizer
  2021-06-28  1:59 ` ericonr
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Veganizer @ 2021-06-27 12:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 194 bytes --]

New comment by Veganizer on void-packages repository

https://github.com/void-linux/void-packages/pull/31521#issuecomment-869154377

Comment:
Can you bump version from 5.4.1 to 5.6.2 maybe? :-)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Signal-Desktop: update to 5.4.1.
  2021-06-16  7:57 [PR PATCH] Signal-Desktop: update to 5.4.1 reedts
                   ` (4 preceding siblings ...)
  2021-06-27 12:33 ` Veganizer
@ 2021-06-28  1:59 ` ericonr
  2021-06-28  7:50 ` [PR PATCH] [Updated] " reedts
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ericonr @ 2021-06-28  1:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31521#issuecomment-869278262

Comment:
There is a failing patch, probably because of the change to default patching args. Please fix :)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Updated] Signal-Desktop: update to 5.4.1.
  2021-06-16  7:57 [PR PATCH] Signal-Desktop: update to 5.4.1 reedts
                   ` (5 preceding siblings ...)
  2021-06-28  1:59 ` ericonr
@ 2021-06-28  7:50 ` reedts
  2021-06-28  7:50 ` reedts
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reedts @ 2021-06-28  7:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1606 bytes --]

There is an updated pull request by reedts against master on the void-packages repository

https://github.com/reedts/void-packages signal-v5.4.1
https://github.com/void-linux/void-packages/pull/31521

Signal-Desktop: update to 5.4.1.
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/31521.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-signal-v5.4.1-31521.patch --]
[-- Type: text/x-diff, Size: 4274 bytes --]

From 6480c209274ab2dc60892963a4aa325ea4834caf Mon Sep 17 00:00:00 2001
From: reedts <j.reedts@gmail.com>
Date: Wed, 16 Jun 2021 09:56:32 +0200
Subject: [PATCH] Signal-Desktop: update to 5.6.2.

---
 .../patches/build-from-tarball.patch          |  9 -----
 .../expire-from-source-date-epoch.patch       | 13 +++++++
 srcpkgs/Signal-Desktop/template               | 35 +++++++++++++------
 3 files changed, 38 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
 create mode 100644 srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch

diff --git a/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch b/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
deleted file mode 100644
index cab451f7f35c..000000000000
--- a/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
+++ /dev/null
@@ -1,9 +0,0 @@
---- a/Gruntfile.js	2020-04-26 23:32:09.861789510 +0200
-+++ b/Gruntfile.js	2020-04-26 23:32:21.424734031 +0200
-@@ -452,6 +452,5 @@
-     'concat',
-     'copy:deps',
-     'sass',
--    'date',
-   ]);
- };
diff --git a/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch b/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch
new file mode 100644
index 000000000000..d29c79835179
--- /dev/null
+++ b/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch
@@ -0,0 +1,13 @@
+--- a/Gruntfile.js
++++ b/Gruntfile.js
+@@ -203,9 +203,7 @@ module.exports = grunt => {
+   });
+ 
+   grunt.registerTask('getExpireTime', () => {
+-    grunt.task.requires('gitinfo');
+-    const gitinfo = grunt.config.get('gitinfo');
+-    const committed = gitinfo.local.branch.current.lastCommitTime;
++    const committed = parseInt(process.env.SOURCE_DATE_EPOCH, 10) * 1000;
+     const time = Date.parse(committed) + 1000 * 60 * 60 * 24 * 90;
+     grunt.file.write(
+       'config/local-production.json',
diff --git a/srcpkgs/Signal-Desktop/template b/srcpkgs/Signal-Desktop/template
index 8999b6e483ff..03b925a60e53 100644
--- a/srcpkgs/Signal-Desktop/template
+++ b/srcpkgs/Signal-Desktop/template
@@ -1,33 +1,46 @@
 # Template file for 'Signal-Desktop'
 pkgname=Signal-Desktop
-version=1.39.5
+version=5.6.2
 revision=1
-# Due to electron
+# Signal officially only supports x86_64 (also due to Electron)
+# discontinued Electron 32-bit support: https://www.electronjs.org/blog/linux-32bit-support
 # 32-bit is not supported https://github.com/signalapp/Signal-Desktop/issues/1661
+# armv7hf/arm64: https://github.com/signalapp/Signal-Desktop/issues/3410
 archs="x86_64"
-hostmakedepends="git nodejs python tar yarn"
-depends="libnotify libappindicator"
+hostmakedepends="git git-lfs nodejs python3 tar yarn"
+depends="cairo gtk+3 libvips pango"
 short_desc="Signal Private Messenger for Linux"
 maintainer="Julio Galvan <juliogalvan@protonmail.com>"
-license="GPL-3.0-only"
+license="AGPL-3.0-only"
 homepage="https://github.com/signalapp/Signal-Desktop"
 distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz"
-checksum=f9f55c0195579b43712bf370b753337432eda4bcf89809d1c8f3deb0b4ee4400
+checksum=9bafd0673ce518379dd3f872beb3f3075bc29a979ea5328150c4c842ef910e87
 nostrip_files="signal-desktop"
 
-pre_build() {
-	vsed -e 's/"node": "/&>=/' -i package.json
+post_extract() {
+	# git-lfs hook needs to be installed for one of the dependencies
+	git lfs install
+
+	vsed 's/"node": "/&>=/' -i package.json
+
+	# Dependencies have to be installed before applying patch
+	yarn install --ignore-engines --frozen-lockfile
 }
 
 do_build() {
-	yarn install --ignore-engines
 	yarn grunt
-	yarn build-release --dir
+	yarn generate
+	yarn build-release
 }
 
 do_install() {
 	vmkdir usr/lib/signal-desktop
 
+	# Remove prebuilt binaries for foreign architectures (to not confuse strip)
+	for prebin in darwin-x64 linux-arm64 win32-ia32 win32-x64; do
+		rm -rf release/linux-unpacked/resources/app.asar.unpacked/node_modules/{ffi-napi,ref-napi}/prebuilds/$prebin
+	done
+
 	vcopy release/linux-unpacked/* usr/lib/signal-desktop
 
 	vmkdir usr/bin
@@ -40,4 +53,6 @@ do_install() {
 	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
+
+	vlicense LICENSE
 }

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Updated] Signal-Desktop: update to 5.4.1.
  2021-06-16  7:57 [PR PATCH] Signal-Desktop: update to 5.4.1 reedts
                   ` (6 preceding siblings ...)
  2021-06-28  7:50 ` [PR PATCH] [Updated] " reedts
@ 2021-06-28  7:50 ` reedts
  2021-06-28  7:51 ` reedts
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reedts @ 2021-06-28  7:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1606 bytes --]

There is an updated pull request by reedts against master on the void-packages repository

https://github.com/reedts/void-packages signal-v5.4.1
https://github.com/void-linux/void-packages/pull/31521

Signal-Desktop: update to 5.4.1.
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/31521.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-signal-v5.4.1-31521.patch --]
[-- Type: text/x-diff, Size: 4274 bytes --]

From 7050cfaa7ea564735f4e0a099810c7b842767b64 Mon Sep 17 00:00:00 2001
From: reedts <j.reedts@gmail.com>
Date: Wed, 16 Jun 2021 09:56:32 +0200
Subject: [PATCH] Signal-Desktop: update to 5.6.2.

---
 .../patches/build-from-tarball.patch          |  9 -----
 .../expire-from-source-date-epoch.patch       | 13 +++++++
 srcpkgs/Signal-Desktop/template               | 35 +++++++++++++------
 3 files changed, 38 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
 create mode 100644 srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch

diff --git a/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch b/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
deleted file mode 100644
index cab451f7f35c..000000000000
--- a/srcpkgs/Signal-Desktop/patches/build-from-tarball.patch
+++ /dev/null
@@ -1,9 +0,0 @@
---- a/Gruntfile.js	2020-04-26 23:32:09.861789510 +0200
-+++ b/Gruntfile.js	2020-04-26 23:32:21.424734031 +0200
-@@ -452,6 +452,5 @@
-     'concat',
-     'copy:deps',
-     'sass',
--    'date',
-   ]);
- };
diff --git a/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch b/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch
new file mode 100644
index 000000000000..d29c79835179
--- /dev/null
+++ b/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch
@@ -0,0 +1,13 @@
+--- a/Gruntfile.js
++++ b/Gruntfile.js
+@@ -203,9 +203,7 @@ module.exports = grunt => {
+   });
+ 
+   grunt.registerTask('getExpireTime', () => {
+-    grunt.task.requires('gitinfo');
+-    const gitinfo = grunt.config.get('gitinfo');
+-    const committed = gitinfo.local.branch.current.lastCommitTime;
++    const committed = parseInt(process.env.SOURCE_DATE_EPOCH, 10) * 1000;
+     const time = Date.parse(committed) + 1000 * 60 * 60 * 24 * 90;
+     grunt.file.write(
+       'config/local-production.json',
diff --git a/srcpkgs/Signal-Desktop/template b/srcpkgs/Signal-Desktop/template
index 8999b6e483ff..03b925a60e53 100644
--- a/srcpkgs/Signal-Desktop/template
+++ b/srcpkgs/Signal-Desktop/template
@@ -1,33 +1,46 @@
 # Template file for 'Signal-Desktop'
 pkgname=Signal-Desktop
-version=1.39.5
+version=5.6.2
 revision=1
-# Due to electron
+# Signal officially only supports x86_64 (also due to Electron)
+# discontinued Electron 32-bit support: https://www.electronjs.org/blog/linux-32bit-support
 # 32-bit is not supported https://github.com/signalapp/Signal-Desktop/issues/1661
+# armv7hf/arm64: https://github.com/signalapp/Signal-Desktop/issues/3410
 archs="x86_64"
-hostmakedepends="git nodejs python tar yarn"
-depends="libnotify libappindicator"
+hostmakedepends="git git-lfs nodejs python3 tar yarn"
+depends="cairo gtk+3 libvips pango"
 short_desc="Signal Private Messenger for Linux"
 maintainer="Julio Galvan <juliogalvan@protonmail.com>"
-license="GPL-3.0-only"
+license="AGPL-3.0-only"
 homepage="https://github.com/signalapp/Signal-Desktop"
 distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz"
-checksum=f9f55c0195579b43712bf370b753337432eda4bcf89809d1c8f3deb0b4ee4400
+checksum=9bafd0673ce518379dd3f872beb3f3075bc29a979ea5328150c4c842ef910e87
 nostrip_files="signal-desktop"
 
-pre_build() {
-	vsed -e 's/"node": "/&>=/' -i package.json
+post_extract() {
+	# git-lfs hook needs to be installed for one of the dependencies
+	git lfs install
+
+	vsed 's/"node": "/&>=/' -i package.json
+
+	# Dependencies have to be installed before applying patch
+	yarn install --ignore-engines --frozen-lockfile
 }
 
 do_build() {
-	yarn install --ignore-engines
 	yarn grunt
-	yarn build-release --dir
+	yarn generate
+	yarn build-release
 }
 
 do_install() {
 	vmkdir usr/lib/signal-desktop
 
+	# Remove prebuilt binaries for foreign architectures (to not confuse strip)
+	for prebin in darwin-x64 linux-arm64 win32-ia32 win32-x64; do
+		rm -rf release/linux-unpacked/resources/app.asar.unpacked/node_modules/{ffi-napi,ref-napi}/prebuilds/$prebin
+	done
+
 	vcopy release/linux-unpacked/* usr/lib/signal-desktop
 
 	vmkdir usr/bin
@@ -40,4 +53,6 @@ do_install() {
 	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
+
+	vlicense LICENSE
 }

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Signal-Desktop: update to 5.4.1.
  2021-06-16  7:57 [PR PATCH] Signal-Desktop: update to 5.4.1 reedts
                   ` (7 preceding siblings ...)
  2021-06-28  7:50 ` reedts
@ 2021-06-28  7:51 ` reedts
  2021-06-28  8:14 ` ScrelliCopter
  2021-06-29 22:15 ` [PR PATCH] [Merged]: Signal-Desktop: update to 5.6.2 Piraty
  10 siblings, 0 replies; 12+ messages in thread
From: reedts @ 2021-06-28  7:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

New comment by reedts on void-packages repository

https://github.com/void-linux/void-packages/pull/31521#issuecomment-869457194

Comment:
@Veganizer @ericonr Bumped version to 5.6.2, fixed patch and rebased to current master

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Signal-Desktop: update to 5.4.1.
  2021-06-16  7:57 [PR PATCH] Signal-Desktop: update to 5.4.1 reedts
                   ` (8 preceding siblings ...)
  2021-06-28  7:51 ` reedts
@ 2021-06-28  8:14 ` ScrelliCopter
  2021-06-29 22:15 ` [PR PATCH] [Merged]: Signal-Desktop: update to 5.6.2 Piraty
  10 siblings, 0 replies; 12+ messages in thread
From: ScrelliCopter @ 2021-06-28  8:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 223 bytes --]

New comment by ScrelliCopter on void-packages repository

https://github.com/void-linux/void-packages/pull/31521#issuecomment-869473439

Comment:
Builds & runs on my end. Don't forget to update the version in the PR title.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PR PATCH] [Merged]: Signal-Desktop: update to 5.6.2.
  2021-06-16  7:57 [PR PATCH] Signal-Desktop: update to 5.4.1 reedts
                   ` (9 preceding siblings ...)
  2021-06-28  8:14 ` ScrelliCopter
@ 2021-06-29 22:15 ` Piraty
  10 siblings, 0 replies; 12+ messages in thread
From: Piraty @ 2021-06-29 22:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]

There's a merged pull request on the void-packages repository

Signal-Desktop: update to 5.6.2.
https://github.com/void-linux/void-packages/pull/31521

Description:
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-06-29 22:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-16  7:57 [PR PATCH] Signal-Desktop: update to 5.4.1 reedts
2021-06-22  8:43 ` [PR PATCH] [Updated] " reedts
2021-06-24 22:24 ` ScrelliCopter
2021-06-25  6:50 ` [PR PATCH] [Updated] " reedts
2021-06-25  6:51 ` reedts
2021-06-27 12:33 ` Veganizer
2021-06-28  1:59 ` ericonr
2021-06-28  7:50 ` [PR PATCH] [Updated] " reedts
2021-06-28  7:50 ` reedts
2021-06-28  7:51 ` reedts
2021-06-28  8:14 ` ScrelliCopter
2021-06-29 22:15 ` [PR PATCH] [Merged]: Signal-Desktop: update to 5.6.2 Piraty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).