net-im/signal-desktop-bin: add new version 1.31.0
authorRobert Siebeck <gentoo.2019@r123.de>
Mon, 10 Feb 2020 22:29:38 +0000 (23:29 +0100)
committerJoonas Niilola <juippis@gentoo.org>
Thu, 13 Feb 2020 06:26:32 +0000 (08:26 +0200)
Signed-off-by: Robert Siebeck <gentoo.2019@r123.de>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
net-im/signal-desktop-bin/Manifest
net-im/signal-desktop-bin/signal-desktop-bin-1.31.0.ebuild [new file with mode: 0644]

index 978744ce70c65daba6145821a56bc6d362b762ec..e914e87554da4783593bed7f1be12c40f7fdc4d0 100644 (file)
@@ -1 +1,2 @@
 DIST signal-desktop_1.30.1_amd64.deb 108661142 BLAKE2B 1838502932471f7d2d275543917f685bca8ac77258649da75637682a39485f657fe48c8262ecff0a2bfce39ac08640ef916d62aead8472f148f8473f6930b63e SHA512 b3eeeea662d2fbb7981345fc9c2e501d8ad83a1bf7f2319a88870442bf2ca11849315410682ed97fca29f33db81560543b13bfb8b7fe5cc9be1d8c9b9c8cdeea
+DIST signal-desktop_1.31.0_amd64.deb 92405482 BLAKE2B dbbdfbe47556fabe8713ecfaa76f79d09584fb62b08c885865bb4df5e7bad245fcf9ce735ea9c03eb687343501eed9f9b27aa82b30c8ae0d434b923ff62907ee SHA512 07eef132837285a2348f3c3b253a6964f7446254a93a98b3270393acf54bf59244558fba22cf15ced23f27cc5eb833aecd8bb9c161f366bd6d661d96f9c5e8e3
diff --git a/net-im/signal-desktop-bin/signal-desktop-bin-1.31.0.ebuild b/net-im/signal-desktop-bin/signal-desktop-bin-1.31.0.ebuild
new file mode 100644 (file)
index 0000000..cf0c414
--- /dev/null
@@ -0,0 +1,75 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="${PN/-bin/}"
+
+inherit pax-utils unpacker xdg-utils
+
+DESCRIPTION="Allows you to send and receive messages of Signal Messenger on your computer"
+HOMEPAGE="https://signal.org/
+       https://github.com/signalapp/Signal-Desktop"
+SRC_URI="https://updates.signal.org/desktop/apt/pool/main/s/${MY_PN}/${MY_PN}_${PV}_amd64.deb"
+
+LICENSE="GPL-3 MIT MIT-with-advertising BSD-1 BSD-2 BSD Apache-2.0 ISC openssl ZLIB APSL-2 icu Artistic-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+IUSE=""
+
+BDEPEND="app-admin/chrpath"
+RDEPEND="
+       dev-libs/nss
+       media-libs/mesa[X(+)]
+       net-print/cups
+       x11-libs/gtk+:3[X]
+       x11-libs/libXScrnSaver
+       x11-libs/libXtst"
+
+QA_PREBUILT="opt/Signal/signal-desktop
+       opt/Signal/chrome-sandbox
+       opt/Signal/libffmpeg.so
+       opt/Signal/libGLESv2.so
+       opt/Signal/libnode.so
+       opt/Signal/libVkICD_mock_icd.so
+       opt/Signal/swiftshader/libGLESv2.so
+       opt/Signal/resources/app.asar.unpacked/node_modules/sharp/build/Release/sharp.node
+       opt/Signal/resources/app.asar.unpacked/node_modules/sharp/vendor/lib/*"
+
+S="${WORKDIR}"
+
+src_prepare(){
+       default
+       sed -e 's|\("/opt/Signal/signal-desktop"\)|\1 --start-in-tray|g' \
+               -i usr/share/applications/signal-desktop.desktop || die
+       unpack usr/share/doc/signal-desktop/changelog.gz
+       # Fix Bug 706352
+       chrpath opt/Signal/resources/app.asar.unpacked/node_modules/sharp/vendor/lib/libjpeg.so.8.2.2 -r '$ORIGIN:/target/lib' || die
+       chrpath opt/Signal/resources/app.asar.unpacked/node_modules/sharp/vendor/lib/libffi.so.6.0.4 -d || die
+}
+
+src_install() {
+       insinto /
+       dodoc changelog
+       doins -r opt
+       insinto /usr/share
+       doins -r usr/share/applications
+       doins -r usr/share/icons
+       fperms +x /opt/Signal/signal-desktop /opt/Signal/chrome-sandbox
+       fperms u+s /opt/Signal/chrome-sandbox
+       pax-mark m opt/Signal/signal-desktop opt/Signal/chrome-sandbox
+
+       dosym ../../opt/Signal/${MY_PN} /usr/bin/${MY_PN}
+       dosym ../../usr/lib64/libEGL.so opt/Signal/libEGL.so
+       dosym ../../../usr/lib64/libEGL.so opt/Signal/swiftshader/libEGL.so
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}