aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Strogin <steils@gentoo.org>2020-08-18 14:55:40 +0300
committerStefan Strogin <steils@gentoo.org>2020-08-18 14:55:40 +0300
commit91651ca651766082e5435c8c82510d3798f8b380 (patch)
treea31cae87fef17736d98e391f75fbe381ed1dca6d
parentnet-im/spectral: add missing dep (diff)
downloadmatrix-91651ca651766082e5435c8c82510d3798f8b380.tar.gz
matrix-91651ca651766082e5435c8c82510d3798f8b380.tar.bz2
matrix-91651ca651766082e5435c8c82510d3798f8b380.zip
net-im/element-desktop: upgrade to 1.7.4
Package-Manager: Portage-3.0.3, Repoman-3.0.0 Signed-off-by: Stefan Strogin <steils@gentoo.org>
-rw-r--r--net-im/element-desktop/Manifest2
-rw-r--r--net-im/element-desktop/element-desktop-1.7.4.ebuild101
2 files changed, 103 insertions, 0 deletions
diff --git a/net-im/element-desktop/Manifest b/net-im/element-desktop/Manifest
index 8617c9d..1a64624 100644
--- a/net-im/element-desktop/Manifest
+++ b/net-im/element-desktop/Manifest
@@ -1,6 +1,8 @@
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-desktop-1.7.4.tar.gz 1879906 BLAKE2B e9a9db7716965abea27d3673f5d69b45adb6ef705be8cc8dbc0b418172b397f976a22ea5af625737225c375a26df6a16cc2dc7b01d9d06cea0214f2b10571709 SHA512 cbfb7c6bc56683f5fe8028852aec471a681929f186e4a980170636bbdf48ebc06255800e6d2b7502cfe9197e68f5cb203377ed21843974ba0ac6e371499588b7
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
+DIST element-web-1.7.4.tar.gz 1176618 BLAKE2B 47ae0ee666d7b92413e4ce2e1d31863eafc296ee162a189704f1936a08769c61008ea0768d4e83686b7c985aa182dc839f2abdb63ca8ac17fb77a7dc735af86f SHA512 9b24517ace1ca9fed72251b262d6bcb8fb90d9dee57072c23a4f2c337eda29cef720087511bf4896f153ce8d3635842c119daaa9e1552f9dde1e5a4d4a3e915b
diff --git a/net-im/element-desktop/element-desktop-1.7.4.ebuild b/net-im/element-desktop/element-desktop-1.7.4.ebuild
new file mode 100644
index 0000000..8b150ab
--- /dev/null
+++ b/net-im/element-desktop/element-desktop-1.7.4.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit unpacker xdg
+
+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="!net-im/element-desktop-bin
+ 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/libvulkan.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
+}