Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/signal-desktop-bin/
Date: Sun, 24 Feb 2019 22:16:53
Message-Id: 1551046566.eb02a7e8a8375b7ab78264fe0f9e4cd6061776f4.monsieurp@gentoo
1 commit: eb02a7e8a8375b7ab78264fe0f9e4cd6061776f4
2 Author: Robert Siebeck <gentoo.bugzilla.2012 <AT> r123 <DOT> de>
3 AuthorDate: Thu Feb 21 18:21:20 2019 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 24 22:16:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb02a7e8
7
8 net-im/signal-desktop-bin: add new version 1.22.0.
9
10 Signed-off-by: Robert Siebeck <gentoo.bugzilla.2012 <AT> r123.de>
11 Closes: https://github.com/gentoo/gentoo/pull/11125
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 net-im/signal-desktop-bin/Manifest | 1 +
15 .../signal-desktop-bin-1.22.0.ebuild | 63 ++++++++++++++++++++++
16 2 files changed, 64 insertions(+)
17
18 diff --git a/net-im/signal-desktop-bin/Manifest b/net-im/signal-desktop-bin/Manifest
19 index 4ed3ea8aca7..292f2c63121 100644
20 --- a/net-im/signal-desktop-bin/Manifest
21 +++ b/net-im/signal-desktop-bin/Manifest
22 @@ -1 +1,2 @@
23 DIST signal-desktop_1.21.2_amd64.deb 74745050 BLAKE2B 6000b23876abe54ba863dc5db021ab336497b211eb3d77c7addc3c183f2ac2f8918a00e61d813cbed8c23f8408323161b5b4a9762a84362ffc8d7a445f950e8e SHA512 e678dd1d006cfdbb0fb09c1803dbe958502f53ff3c57a52bb6e3079b0e6d99171512b019888d70a0222072f9da53d94c5a33f781a0fd4b0c9c9c515573eebea3
24 +DIST signal-desktop_1.22.0_amd64.deb 74411844 BLAKE2B 1a0d8c10066e860142de85315c09a86b819975b5825eb1200af2a0d9e8af250b97d7b3746408ba721b6de44941464bc68262156b3052d61cf20d272c24fa3899 SHA512 ea471877991f8a85b47f72f5c8e790f230a18a9e107f8beea9b1ba9375291ed33fa07d09a07da0dad74942618a2c8d2fb51b8b5d7fe7c18ad36f305249d8f68a
25
26 diff --git a/net-im/signal-desktop-bin/signal-desktop-bin-1.22.0.ebuild b/net-im/signal-desktop-bin/signal-desktop-bin-1.22.0.ebuild
27 new file mode 100644
28 index 00000000000..e4a362f0ca5
29 --- /dev/null
30 +++ b/net-im/signal-desktop-bin/signal-desktop-bin-1.22.0.ebuild
31 @@ -0,0 +1,63 @@
32 +# Copyright 1999-2018 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +MY_PN="${PN/-bin/}"
38 +
39 +inherit gnome2-utils pax-utils unpacker xdg-utils
40 +
41 +DESCRIPTION="Allows you to send and receive messages of Signal Messenger on your computer"
42 +HOMEPAGE="https://signal.org/
43 + https://github.com/WhisperSystems/Signal-Desktop"
44 +SRC_URI="https://updates.signal.org/desktop/apt/pool/main/s/${MY_PN}/${MY_PN}_${PV}_amd64.deb"
45 +
46 +LICENSE="GPL-3"
47 +SLOT="0"
48 +KEYWORDS="-* ~amd64"
49 +IUSE=""
50 +
51 +RDEPEND="
52 + gnome-base/gconf:2
53 + dev-libs/nss
54 + x11-libs/gtk+:3[X]
55 + x11-libs/libXScrnSaver
56 + x11-libs/libXtst
57 + net-print/cups
58 + "
59 +
60 +QA_PREBUILT="opt/Signal/signal-desktop
61 + opt/Signal/libnode.so
62 + opt/Signal/libffmpeg.so"
63 +
64 +S="${WORKDIR}"
65 +
66 +src_prepare(){
67 + default
68 + sed -e 's|\("/opt/Signal/signal-desktop"\)|\1 --start-in-tray|g' \
69 + -i usr/share/applications/signal-desktop.desktop || die
70 + unpack usr/share/doc/signal-desktop/changelog.gz
71 +}
72 +
73 +src_install() {
74 + insinto /
75 + dodoc changelog
76 + doins -r opt
77 + insinto /usr/share
78 + doins -r usr/share/applications
79 + doins -r usr/share/icons
80 + fperms +x /opt/Signal/signal-desktop
81 + pax-mark m opt/Signal/signal-desktop
82 +
83 + dosym ../../opt/Signal/${MY_PN} /usr/bin/${MY_PN}
84 +}
85 +
86 +pkg_postinst() {
87 + xdg_desktop_database_update
88 + gnome2_icon_cache_update
89 +}
90 +
91 +pkg_postrm() {
92 + xdg_desktop_database_update
93 + gnome2_icon_cache_update
94 +}