git: 45a42f5e33bc - main - net-im/signal-desktop: Update to 7.16.0

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Fri, 19 Jul 2024 15:55:22 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=45a42f5e33bc7a67e1b8a41cf6be6040efb5c1ed

commit 45a42f5e33bc7a67e1b8a41cf6be6040efb5c1ed
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2024-07-19 13:21:46 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2024-07-19 15:55:06 +0000

    net-im/signal-desktop: Update to 7.16.0
---
 net-im/signal-desktop/Makefile                 | 20 +++++++++++++++-----
 net-im/signal-desktop/distinfo                 | 10 +++++-----
 net-im/signal-desktop/files/patch-package.json |  4 ++--
 net-im/signal-desktop/get_deps.sh              |  2 +-
 net-im/signal-desktop/pkg-descr                |  2 +-
 5 files changed, 24 insertions(+), 14 deletions(-)

diff --git a/net-im/signal-desktop/Makefile b/net-im/signal-desktop/Makefile
index 2077c8073916..ef66773ebdf2 100644
--- a/net-im/signal-desktop/Makefile
+++ b/net-im/signal-desktop/Makefile
@@ -1,12 +1,13 @@
 PORTNAME=	signal-desktop
 DISTVERSIONPREFIX=	v
-DISTVERSION=	7.15.0
-PORTREVISION=	1
+DISTVERSION=	7.16.0
 CATEGORIES=	net-im
 MASTER_SITES=	LOCAL/mikael/signal-desktop/:npm \
 		https://build-artifacts.signal.org/desktop/:sqlcipher
 DISTFILES=	signal-desktop-${DISTVERSION}-npm-cache.tar.gz:npm \
 		${SQLCIPHER}.tar.gz:sqlcipher
+# for online build
+#DISTFILES=	${SQLCIPHER}.tar.gz:sqlcipher
 
 MAINTAINER=	mikael@FreeBSD.org
 COMMENT=	Cross-platform centralized encrypted messaging service
@@ -110,6 +111,11 @@ post-extract:
 	${PREFIX}/bin/jq 'del(.devDependencies."@signalapp/mock-server")' ${WRKSRC}/package.json > ${WRKSRC}/package.json.tmp
 	${MV} ${WRKSRC}/package.json.tmp ${WRKSRC}/package.json
 
+	# for online build
+#	cd ${WRKSRC} && \
+#		${SETENV} ${MAKE_ENV} npm install --ignore-optional --ignore-scripts || ${TRUE}
+
+	# for offline build
 	cd ${WRKSRC} && \
 		${SETENV} ${MAKE_ENV} npm install --ignore-optional --ignore-scripts --offline || ${TRUE}
 
@@ -140,12 +146,16 @@ do-build:
 
 	@${RM} -r ${WRKSRC}/node_modules/fs-xattr
 
+	# online build
+#	cd ${WRKSRC} && \
+#		${SETENV} ${MAKE_ENV} npm_config_nodedir=${LOCALBASE}/share/electron${ELECTRON_VER_MAJOR}/node_headers npm install --ignore-optional
+#	cd ${WRKSRC} && \
+#		${SETENV} ${MAKE_ENV} npm run generate
+
+	# offline build
 	${ECHO_CMD} offline=true >> ${WRKSRC}/.npmrc
-	${ECHO_CMD} ${PATH}
-	${ECHO_CMD} a >> ${WRKSRC}/todo
 	cd ${WRKSRC} && \
 		${SETENV} ${MAKE_ENV} npm_config_nodedir=${LOCALBASE}/share/electron${ELECTRON_VER_MAJOR}/node_headers npm install --ignore-optional --offline
-	${ECHO_CMD} b >> ${WRKSRC}/todo
 	cd ${WRKSRC} && \
 		${SETENV} ${MAKE_ENV} npm run generate --offline
 
diff --git a/net-im/signal-desktop/distinfo b/net-im/signal-desktop/distinfo
index 9012d9b5d0a5..87017b0e4703 100644
--- a/net-im/signal-desktop/distinfo
+++ b/net-im/signal-desktop/distinfo
@@ -1,7 +1,7 @@
-TIMESTAMP = 1720443621
-SHA256 (signal-desktop-7.15.0-npm-cache.tar.gz) = 28c79209e84d991b6a42fc9403d484d438b576f3c3457a595657d25c37e6a7e4
-SIZE (signal-desktop-7.15.0-npm-cache.tar.gz) = 325615757
+TIMESTAMP = 1721311427
+SHA256 (signal-desktop-7.16.0-npm-cache.tar.gz) = 954b5510cb7889cecb970196abe432318cdcb7adc9cec1b094af1b023c3a7a15
+SIZE (signal-desktop-7.16.0-npm-cache.tar.gz) = 322698652
 SHA256 (sqlcipher-4.5.5-fts5-fix--3.0.7--0.2.1-ef53ea45ed92b928ecfd33c552d8d405263e86e63dec38e1ec63e1b0193b630b.tar.gz) = ef53ea45ed92b928ecfd33c552d8d405263e86e63dec38e1ec63e1b0193b630b
 SIZE (sqlcipher-4.5.5-fts5-fix--3.0.7--0.2.1-ef53ea45ed92b928ecfd33c552d8d405263e86e63dec38e1ec63e1b0193b630b.tar.gz) = 75708533
-SHA256 (signalapp-Signal-Desktop-v7.15.0_GH0.tar.gz) = f92ba15a86920861b4cd53cd5218934128508682d82120f195a59e9deef8e272
-SIZE (signalapp-Signal-Desktop-v7.15.0_GH0.tar.gz) = 42189716
+SHA256 (signalapp-Signal-Desktop-v7.16.0_GH0.tar.gz) = faf2597e80616ff791860e5b7ee40c503366b567aa5bb8bfa5967c92d88aa0cd
+SIZE (signalapp-Signal-Desktop-v7.16.0_GH0.tar.gz) = 42220016
diff --git a/net-im/signal-desktop/files/patch-package.json b/net-im/signal-desktop/files/patch-package.json
index bc4779258a72..f4d3e78d2b39 100644
--- a/net-im/signal-desktop/files/patch-package.json
+++ b/net-im/signal-desktop/files/patch-package.json
@@ -1,5 +1,5 @@
---- package.json.orig	2024-07-08 15:06:16 UTC
-+++ package.json
+--- package.json.orig	2024-07-08 15:06:16.491473000 +0200
++++ package.json	2024-07-08 15:06:50.596796000 +0200
 @@ -19,7 +19,7 @@
      "postinstall": "npm run build:acknowledgments && patch-package && npm run electron:install-app-deps",
      "postuninstall": "npm run build:acknowledgments",
diff --git a/net-im/signal-desktop/get_deps.sh b/net-im/signal-desktop/get_deps.sh
index 97986da7af09..0dc268be29fe 100644
--- a/net-im/signal-desktop/get_deps.sh
+++ b/net-im/signal-desktop/get_deps.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
-SIGNAL_VERS=v7.15.0
+SIGNAL_VERS=v7.16.0
 
 fetch -qo /tmp/package.json https://raw.githubusercontent.com/signalapp/Signal-Desktop/${SIGNAL_VERS}/package.json
 node_version=$(awk /'"node":'/'{print $2}' /tmp/package.json | sed 's/"//g')
diff --git a/net-im/signal-desktop/pkg-descr b/net-im/signal-desktop/pkg-descr
index 9b48caaad419..b313e128bb25 100644
--- a/net-im/signal-desktop/pkg-descr
+++ b/net-im/signal-desktop/pkg-descr
@@ -2,4 +2,4 @@ Signal is a cross-platform centralized encrypted messaging service developed
 by the Signal Technology Foundation and Signal Messenger LLC.
 It uses the Internet to send one-to-one and group messages, which can include
 files, voice notes, images and videos. It can also be used to make one-to-one
-and group voice and video calls.
+and group voice and video calls.