Browse Source

net-im/jitsi-meet-bin: bump to 2.8.3, use .deb

Instead of building the package with npm, the newly added .deb package
is extracted.

A lot of the code for this version of the ebuild has been adapted from
net-im/signal-desktop-bin.

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Kai S. K. Engelbart <kai@kske.dev>
master
kske 2 months ago
parent
commit
0300aa3dbd
Signed by: kske GPG Key ID: 8BEB13EC5DF7EF13
  1. 4
      net-im/jitsi-meet-bin/Manifest
  2. 51
      net-im/jitsi-meet-bin/jitsi-meet-bin-2.7.1.ebuild
  3. 79
      net-im/jitsi-meet-bin/jitsi-meet-bin-2.8.3.ebuild

4
net-im/jitsi-meet-bin/Manifest

@ -1,3 +1,3 @@
DIST jitsi-meet-bin-2.7.1.tar.gz 647183 BLAKE2B 49fb87a2ee451b8d1372e5ad99d72eebfddb318525fe78b08f62dcd4c1aa05e1435b92644b9b48c697c729d17b53a10adeeeeb1463b3313441e1fbed1697589d SHA512 b3b155208c00244bd52e1f913c4c7db014eb515fb3e828e31919b847dd015880466104a999ea381a618e8d0764b365c3c80e7a6eaf9deca548db1b86d8df8beb
EBUILD jitsi-meet-bin-2.7.1.ebuild 1330 BLAKE2B 108258fac4a63fc36fbc00015cf52360da8aab0325c4bf1487c3ef55639f89fce7e4282298e5cc84719d1e23dd683cc4b2b1557ec19a227eedd978f55acbc93d SHA512 86804d33bcda67d102eca3fdb6466337de19b6149ab4f47080846fccdc5cfe7a86a0e1e2f8e945d7d2fda111119802c36a0e862f9ac7a90507d85c7c54942190
DIST jitsi-meet-bin-2.8.3.deb 60204638 BLAKE2B f2a49d850e8f46a89bd20d3a6d180a67d14fc412173bc388e25cd254a7944506a50a6205fa756ee650a9bb747698d3d68d5a6541626f7fc2ec0d5d9e89a4dcee SHA512 e74154eb10f856a31fcf1954fb24ec0f0ecc2a134de20c94e435273787cabfb73fafcfd2f6d4aaa02b7a5ec3d00e2bd19be935fe6ed11fca84e33895befea1de
EBUILD jitsi-meet-bin-2.8.3.ebuild 1824 BLAKE2B 6c130872da9194843779e23b2d9e4b964bb474b4c19d7e99c195926f931f99ac2cb328cae3931c9afdf687b1e30ec3bad4c3800e2a9f18b9ab1781f05ee3b1d4 SHA512 35308bcdc42d5325b554cedb2620c21869e5fe712cbbd803d63015f84b5debee2932d8babfcac2ff0ad9db331c658491d95aa411ecdca7b01711db7ea21be8ad
MISC metadata.xml 410 BLAKE2B 28f33c168168502d0aebca31814533f069d6f9a46cf0712c988f57b460b0a66178cdbcec470fcb8bdd45c279ad0cf7c1106ceef37224a89d45362a1a717ab505 SHA512 3fa5c0ec4c4498fcb48253345f2bb3305c02963615967ec30859e0061a228eb765e211334921641551549b25af27b57956da5ba020100a7679f37b3f76ecd923

51
net-im/jitsi-meet-bin/jitsi-meet-bin-2.7.1.ebuild

@ -1,51 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop xdg
DESCRIPTION="Desktop application for Jitsi Meet built with Electron"
HOMEPAGE="https://github.com/jitsi/jitsi-meet-electron"
SRC_URI="https://github.com/jitsi/jitsi-meet-electron/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
DEPEND="net-libs/nodejs[npm] \
sys-fs/fuse \
"
KEYWORDS="~amd64"
RESTRICT="network-sandbox"
src_unpack() {
default
mv "${WORKDIR}"/* "${WORKDIR}/${P}"
}
src_compile() {
einfo
einfo 'Note, allowing network access from the sandbox via RESTRICT=network-sandbox'
einfo
einfo 'Fetching dependenies via npm'
npm install >> npm.log 2>&1 || die
sed -e 's:AppImage:dir:g' -i package.json
einfo 'Building package via npm'
npm run dist >> npm.log 2>&1 || die
}
src_install() {
mkdir -p "${D}/opt/jitsi-meet"
cp "${S}"/dist/linux-unpacked/* "${D}/opt/jitsi-meet" -r
dosym ../../opt/jitsi-meet/jitsi-meet /usr/bin/jitsi-meet
einfo 'Applying chmod 4755 to chrome-sandbox'
chmod 4755 "${D}/opt/jitsi-meet/chrome-sandbox"
newicon "${S}/resources/icon.png" jitsi-meet.png
make_desktop_entry "${PN}" Jitsi-meet jitsi-meet \
"Network;Chat;InstantMessaging;IRCClient" \
"Terminal=false\\nStartupNotify=true\\nStartupWMClass=Jitsi-meet"
}

79
net-im/jitsi-meet-bin/jitsi-meet-bin-2.8.3.ebuild

@ -0,0 +1,79 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="${PN/-bin/}"
inherit pax-utils unpacker xdg
DESCRIPTION="Desktop application for Jitsi Meet built with Electron"
HOMEPAGE="https://github.com/jitsi/jitsi-meet-electron"
SRC_URI="https://github.com/jitsi/jitsi-meet-electron/releases/download/v${PV}/jitsi-meet-amd64.deb -> ${P}.deb"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="-* ~amd64"
RDEPEND="
app-accessibility/at-spi2-atk
app-accessibility/at-spi2-core
dev-libs/atk
dev-libs/expat
dev-libs/glib
dev-libs/nspr
dev-libs/nss
media-libs/alsa-lib
media-libs/mesa[X(+)]
net-print/cups
sys-apps/dbus[X]
x11-libs/cairo
x11-libs/gdk-pixbuf
x11-libs/gtk+:3[X]
x11-libs/libX11
x11-libs/libxcb
x11-libs/libxkbcommon
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/libXScrnSaver
x11-libs/libXtst
x11-libs/pango
|| (
media-sound/pulseaudio
media-sound/apulse
)
"
S="${WORKDIR}"
src_prepare() {
default
sed -e 's| --no-sandbox||g' \
-i usr/share/applications/jitsi-meet.desktop || die
unpack usr/share/doc/jitsi-meet-electron/changelog.gz
}
src_install() {
insinto /
dodoc changelog
doins -r opt
insinto /usr/share
if has_version media-sound/apulse[-sdk] && ! has_version media-sound/pulseaudio; then
sed -i 's/Exec=/Exec=apulse /g' usr/share/applications/jitsi-meet.desktop || die
fi
doins -r usr/share/applications
doins -r usr/share/icons
fperms +x "/opt/Jitsi Meet/jitsi-meet" "/opt/Jitsi Meet/chrome-sandbox"
fperms u+s "/opt/Jitsi Meet/chrome-sandbox"
pax-mark m "/opt/Jitsi Meet/jitsi-meet" "/opt/Jitsi Meet/chrome-sandbox"
dosym "../../opt/Jitsi Meet/${MY_PN}" "/usr/bin/${MY_PN}"
}
Loading…
Cancel
Save