From f6614016f3d91ebf04a6b109478a6f431e3e3cd9 Mon Sep 17 00:00:00 2001 From: tibequadorian Date: Mon, 7 Feb 2022 21:28:45 +0100 Subject: [PATCH] Signal-Desktop: update to 5.30.0. --- .../expire-from-source-date-epoch.patch | 22 +++++++++---------- srcpkgs/Signal-Desktop/template | 7 +++--- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch b/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch index d29c79835179..597692654bbb 100644 --- a/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch +++ b/srcpkgs/Signal-Desktop/patches/expire-from-source-date-epoch.patch @@ -1,13 +1,11 @@ ---- a/Gruntfile.js -+++ b/Gruntfile.js -@@ -203,9 +203,7 @@ module.exports = grunt => { - }); +--- a/ts/scripts/get-expire-time.ts ++++ b/ts/scripts/get-expire-time.ts +@@ -8,7 +8,7 @@ import { writeFileSync } from 'fs'; + import { DAY } from '../util/durations'; - 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', + const unixTimestamp = parseInt( +- execSync('git show -s --format=%ct').toString('utf8'), ++ process.env.SOURCE_DATE_EPOCH || execSync('git show -s --format=%ct').toString('utf8'), + 10 + ); + const buildCreation = unixTimestamp * 1000; diff --git a/srcpkgs/Signal-Desktop/template b/srcpkgs/Signal-Desktop/template index 33e43a9878d5..cd83c7856a6b 100644 --- a/srcpkgs/Signal-Desktop/template +++ b/srcpkgs/Signal-Desktop/template @@ -1,6 +1,6 @@ # Template file for 'Signal-Desktop' pkgname=Signal-Desktop -version=5.16.0 +version=5.30.0 revision=1 # Signal officially only supports x86_64 (also due to Electron) # discontinued Electron 32-bit support: https://www.electronjs.org/blog/linux-32bit-support @@ -10,11 +10,11 @@ archs="x86_64" hostmakedepends="git git-lfs nodejs python3 tar yarn" depends="cairo gtk+3 libvips pango" short_desc="Signal Private Messenger for Linux" -maintainer="Julio Galvan " +maintainer="Orphaned " 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=c4d8628395ce86b06af85610fb2a1bdcd53784684d796a02abdfc04b24829629 +checksum=2c363162468a7c35db9b84460203f3cab09cecb4fccaedcecafaaa92642b3f63 nostrip_files="signal-desktop" post_extract() { @@ -28,7 +28,6 @@ post_extract() { } do_build() { - yarn grunt yarn generate yarn build-release }