summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2022-12-07 09:58:07 +0200
committerViorel Munteanu <ceamac@gentoo.org>2022-12-07 10:55:27 +0200
commit4b23bd7a93e533fdaed22d459e46611ac7bc297f (patch)
treefcdec61a5839ad390978fdc29c74d918d3a2c6c4
parentmedia-sound/abcmidi: bump to 2022.12.05 (diff)
downloadgentoo-4b23bd7a93e533fdaed22d459e46611ac7bc297f.tar.gz
gentoo-4b23bd7a93e533fdaed22d459e46611ac7bc297f.tar.bz2
gentoo-4b23bd7a93e533fdaed22d459e46611ac7bc297f.zip
net-im/mattermost-desktop-bin: add 5.2.2
Upstream added arm64, try to add it too. Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
-rw-r--r--net-im/mattermost-desktop-bin/Manifest2
-rw-r--r--net-im/mattermost-desktop-bin/mattermost-desktop-bin-5.2.2.ebuild91
2 files changed, 93 insertions, 0 deletions
diff --git a/net-im/mattermost-desktop-bin/Manifest b/net-im/mattermost-desktop-bin/Manifest
index c6c524c9e65b..f7736ac1b2d4 100644
--- a/net-im/mattermost-desktop-bin/Manifest
+++ b/net-im/mattermost-desktop-bin/Manifest
@@ -2,3 +2,5 @@ DIST mattermost-desktop-5.1.1-linux-ia32.tar.gz 102392038 BLAKE2B ad18b2c654e9d1
DIST mattermost-desktop-5.1.1-linux-x64.tar.gz 102908239 BLAKE2B 34bb28894aa8a4dc5e2c9ea2ad601665db4a1a1eaf888f3eaeeabf01aedab07a51da0a3cb25e11bbf08b16e12a24af7e8d8dec308be3951d8d52953a0c9abd43 SHA512 576f41d0a5f7a6217c13594a7b5328442203d143b7ee54843167a38d0cdcb38d93732bcf3f42d6e329107917989f261483a303a2780f7639b0d91666d5a82c73
DIST mattermost-desktop-5.2.0-linux-x64.tar.gz 115645702 BLAKE2B 1e21d143b6b6a03ed640f4437fbe5090315e76795ac6146404d49156ec3d72147ed5000caf85f646af2470ff78a0629e5421f116001dbc49f4d7039c43908cd8 SHA512 0208121c3a0c4ce6e8f1dfbcdda07dd26cbad7f490fa256f7508e8e9ea83173f60eb7cdbba7ed077958d86eff44a7cbd73c9dcffae4b8935450b1c482ac3ece6
DIST mattermost-desktop-5.2.1-linux-x64.tar.gz 115644477 BLAKE2B a11d43c3ec6620da674de3ce6a519a05721305559a28543b406c4a66054957a8ca069819369a7d87d5182dbecce546176eee1bb485954b5c4b52107ad232764f SHA512 2475053c2a828cf6d90649ac8446a82aec17d011c1b89a7b4f479d1b17bda0d50c53c48db0916f922ab70187147152cfdb34917cbdb22a55fd3027a4bbfc48b3
+DIST mattermost-desktop-5.2.2-linux-arm64.tar.gz 116257022 BLAKE2B 42019e849b415870e0f3cda7fd9c0e559945456ac4d06319edf074aecc9ca9bb330aa8547104d4d132f00e237324b6c9bc94dd8e1cd1bc83f50ab50f094a7fc3 SHA512 67f32eff87eae54c4cbfe2ffbec3aca1f6be39836d4e912870809a628888bbe12c2c30a16c7abc1caab0bba77c1f1b97baa01ee10d3f91615b89a57041a4c64a
+DIST mattermost-desktop-5.2.2-linux-x64.tar.gz 115646636 BLAKE2B f3d01c913205dcf2c14cfcfcfc8eba06909c36446a8d6f450270f50328adaf585c5eefa68de212fcc61d012d74b69053790ba9494ee291a90c2b382b530e2e23 SHA512 5ef578c2af8afcd55b75f93904eead8257c0f1e9614de34a13705da2c8ce8f0da2ea57cc62b1fffb12b8effa2a2a98bb200c43a7f43635dc910fa91f7e629f35
diff --git a/net-im/mattermost-desktop-bin/mattermost-desktop-bin-5.2.2.ebuild b/net-im/mattermost-desktop-bin/mattermost-desktop-bin-5.2.2.ebuild
new file mode 100644
index 000000000000..4995711bfc87
--- /dev/null
+++ b/net-im/mattermost-desktop-bin/mattermost-desktop-bin-5.2.2.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="${PN%-*}"
+MY_PV="${PV/_rc/-rc}"
+
+inherit desktop xdg
+
+DESCRIPTION="Mattermost Desktop application"
+HOMEPAGE="https://mattermost.com/"
+
+SRC_URI="
+ amd64? ( https://releases.mattermost.com/desktop/${MY_PV}/mattermost-desktop-${MY_PV}-linux-x64.tar.gz )
+ arm64? ( https://releases.mattermost.com/desktop/${MY_PV}/mattermost-desktop-${MY_PV}-linux-arm64.tar.gz )
+"
+
+LICENSE="Apache-2.0 GPL-2+ LGPL-2.1+ MIT"
+SLOT="0"
+# Starting with 5.2.0 upstream dropped x86 for their binary release #879519
+KEYWORDS="~amd64"
+
+RDEPEND="
+ >=app-accessibility/at-spi2-core-2.46.0:2[X]
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ dev-libs/wayland
+ media-libs/alsa-lib
+ media-libs/mesa
+ net-print/cups
+ sys-apps/dbus
+ sys-libs/glibc
+ x11-libs/cairo
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/libdrm
+ x11-libs/libxcb
+ x11-libs/libxkbcommon
+ x11-libs/pango
+"
+
+QA_PREBUILT="
+ opt/mattermost-desktop/mattermost-desktop
+ opt/mattermost-desktop/libnode.so
+ opt/mattermost-desktop/libffmpeg.so
+ opt/mattermost-desktop/libGLESv2.so
+ opt/mattermost-desktop/libEGL.so
+ opt/mattermost-desktop/libvk_swiftshader.so
+ opt/mattermost-desktop/libvulkan.so.1
+ opt/mattermost-desktop/resources/*
+"
+
+DOCS=(
+ NOTICE.txt
+)
+
+S="${WORKDIR}"
+
+src_install() {
+ if use amd64; then
+ cd mattermost-desktop-${MY_PV}-linux-x64
+ elif use arm64; then
+ cd mattermost-desktop-${MY_PV}-linux-arm64
+ fi
+ newicon app_icon.png ${MY_PN}.png
+
+ insinto "/opt/${MY_PN}/locales"
+ doins locales/*.pak
+
+ insinto "/opt/${MY_PN}/resources"
+ doins -r resources/*.asar*
+
+ insinto "/opt/${MY_PN}"
+ doins *.pak *.bin *.dat
+ exeinto "/opt/${MY_PN}"
+ doexe *.so *.so.* "${MY_PN}"
+
+ dosym -r "/opt/${MY_PN}/${MY_PN}" "/usr/bin/${MY_PN}"
+
+ make_desktop_entry "${MY_PN}" Mattermost "${MY_PN}"
+
+ einstalldocs
+}