diff options
author | 2020-08-09 02:00:00 +0300 | |
---|---|---|
committer | 2020-08-09 02:00:00 +0300 | |
commit | 5e55fe62331699798cfc4352d8ec5dc4e1f145fd (patch) | |
tree | d7036ec1f5fd1726e5c36220db5ae417c0fc9f89 | |
parent | net-im/element-desktop: add missing app-crypt/libsecret dependency (diff) | |
download | matrix-5e55fe62331699798cfc4352d8ec5dc4e1f145fd.tar.gz matrix-5e55fe62331699798cfc4352d8ec5dc4e1f145fd.tar.bz2 matrix-5e55fe62331699798cfc4352d8ec5dc4e1f145fd.zip |
net-im/element-desktop: upgrade to 1.7.3
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Stefan Strogin <steils@gentoo.org>
-rw-r--r-- | net-im/element-desktop/Manifest | 2 | ||||
-rw-r--r-- | net-im/element-desktop/element-desktop-1.7.3.ebuild | 116 |
2 files changed, 118 insertions, 0 deletions
diff --git a/net-im/element-desktop/Manifest b/net-im/element-desktop/Manifest index 539a927..8617c9d 100644 --- a/net-im/element-desktop/Manifest +++ b/net-im/element-desktop/Manifest @@ -1,4 +1,6 @@ DIST element-desktop-1.6.8.tar.gz 405372 BLAKE2B 58a6c47db3d082b27459bf7194891e3f6f2244885381bbce85f564e7af65b4a591fafee183c50e66f61a5f1d4036bd89e7b277a385c0df03651602a01a668057 SHA512 1d8bb1205299b5025251ac0aaba1111a5d669ed706e3862258197ba0073a1609abf48e144e53a6a302910f6c797003219562443ea9512e3ed12f878ffff04d19 DIST element-desktop-1.7.2.tar.gz 1881611 BLAKE2B e5a83dcc1517768e217864c495645160a5f300d205e526e98f73fb7398dbba3772168977103cc89bd78e2dfa5a13c196cf9a3af04c389678da9653433ee85024 SHA512 10855fea225f7c92d1b1c5752806f61254d41672cf100b77c56a3b9c09c0ed9c101019cd0535afc8485a33508a91259546ad32367a3ea7a84e2d355fb50fe91c +DIST element-desktop-1.7.3.tar.gz 1879639 BLAKE2B 1089c502882ff4eb60f9a73a302d46eb56a4a56ba23a48e3457e974a460963dbcd7c5d04e63c68291492b2954eeb56ca73f7d697394afec02173b41af4efd267 SHA512 4f9c34ecc1a4dcdb0dfe2eac7542eb6db43674e25d69e7099f7a6fcacb84b2977748abd8ca9b43d518365b07abeb793b481765c2e82ab486f20014489e8daf80 DIST element-web-1.6.8.tar.gz 1157496 BLAKE2B a80fac49fbe9096b7ac6ec2111aab5ca9eeb9a1a91ad4395df0a3bc0bd5210dd960018e6e960bf8d3e14d6f272a045765afa08eb43bb57d72b71b52038e8ee4b SHA512 cf5b42e1ebe93ffc7cccc32d6c2e495c664f1253223c1643e73d37210f0556abbf9c0135e82673767aa690be168ccbb68341353cc346cd3e5f453183909a1de0 DIST element-web-1.7.2.tar.gz 1177096 BLAKE2B f1ebff4fc7099ca89b0c81afc9628eadf21fcfa4d2696d4ef0a45712e34936c92a6bbcb72640ff1ee678a231f65f07aca545ac1d01bd07274fd55e8ff8ed3d98 SHA512 02849c20598f97123b34efacfa54fa90618964f31ab79dc0b49116a18abfad8ccb9148f2e42b8de6fddb355422e69a9138bf59de6d18627a9dfb1d877859692a +DIST element-web-1.7.3.tar.gz 1177183 BLAKE2B 918321344b6c5e9bdcb704bd054b1b2322f9bb0cec1654659f3238007b9562aa23f4524b86ad1deced8e58cc207f1dd53722df7fcb88b8a6e5728994885e5c14 SHA512 88cc870abdff5f674e2d8f172ee175c267a78e116d0b02103c397854b971f97e4489d64bf8b58b3764aeb526a055e7b52fb71f9ac1bba84871c5de1393f7edd7 diff --git a/net-im/element-desktop/element-desktop-1.7.3.ebuild b/net-im/element-desktop/element-desktop-1.7.3.ebuild new file mode 100644 index 0000000..d9a8053 --- /dev/null +++ b/net-im/element-desktop/element-desktop-1.7.3.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit unpacker xdg-utils + +DESCRIPTION="A glossy Matrix collaboration client for desktop" +HOMEPAGE="https://element.io" +SRC_URI="https://github.com/vector-im/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/vector-im/element-web/archive/v${PV}.tar.gz -> element-web-${PV}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+emoji" + +RESTRICT="network-sandbox" + +RDEPEND="app-accessibility/at-spi2-atk:2 + app-crypt/libsecret + dev-db/sqlcipher + dev-libs/atk + dev-libs/expat + dev-libs/nspr + dev-libs/nss + >=net-libs/nodejs-12.14.0 + net-print/cups + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libxcb + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/libXScrnSaver + x11-libs/pango + emoji? ( media-fonts/noto-emoji )" +DEPEND="${RDEPEND}" +BDEPEND="sys-apps/yarn + virtual/rust" + +QA_PREBUILT=" + /opt/Element/chrome-sandbox + /opt/Element/element-desktop + /opt/Element/libEGL.so + /opt/Element/libGLESv2.so + /opt/Element/libffmpeg.so + /opt/Element/libvk_swiftshader.so + /opt/Element/swiftshader/libEGL.so + /opt/Element/swiftshader/libGLESv2.so" + +ELEMENT_WEB_S="${WORKDIR}/element-web-${PV}" + +src_prepare() { + default + pushd "${ELEMENT_WEB_S}" >/dev/null || die + yarn install || die + cp config.sample.json config.json || die + + popd || die + yarn install || die +} + +src_compile() { + pushd "${ELEMENT_WEB_S}" >/dev/null || die + yarn build || die + + popd || die + ln -s "${ELEMENT_WEB_S}"/webapp ./ || die + yarn build:native || die + yarn build || die +} + +src_install() { + unpack dist/${PN}_${PV}_amd64.deb + tar -xvf data.tar.xz || die + + ./node_modules/asar/bin/asar.js p webapp opt/Element/resources/webapp.asar || die + mv usr/share/doc/${PN} usr/share/doc/${PF} || die + gunzip usr/share/doc/${PF}/changelog.gz || die + + insinto / + doins -r usr + doins -r opt + local f + for f in ${QA_PREBUILT}; do + fperms +x "${f}" + done + dosym ../../opt/Element/${PN} /usr/bin/${PN} + dosym ${PN} /usr/bin/riot-desktop +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + + elog "Since upgrading Element to Electron 8 it uses StatusNotifierItem" + elog "for displaying the tray icon." + elog "Some popular status bars do not support the new API." + elog + elog "If you have problems with showing the tray icon, consider installing" + elog "x11-misc/snixembed." +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} |