summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76327e4c93770e0d44addbad57c417425e4a7fea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Maintainer: Martin Rys <https://rys.rs/contact> | Toss a coin on https://rys.rs/donate
# Previous maintainers:
#   Roman Kupriyanov <mr.eshua@gmail.com>
_pkgname=jitsi-meet-desktop
pkgname=${_pkgname}-bin
pkgver=2025.1.1
pkgrel=1
pkgdesc="Jitsi Meet desktop application powered by Electron"
arch=('x86_64')
url="https://github.com/jitsi/jitsi-meet-electron"
# TODO: E: Apache is not a valid SPDX license identifier. See https://spdx.org/licenses/ for valid identifiers, or prefix the identifier with 'LicenseRef-', if it is custom.
license=('Apache')
provides=("${_pkgname}")
conflicts=(
	"${_pkgname}"
	'jitsi-meet-electron')
replaces=('jitsi-meet-electron')
depends=(
	'alsa-lib'
	'gtk3'
	'nss')
makedepends=('coreutils')
backup=()

options=(!strip)
source=(
	"jitsi-meet-${arch[0]}-${pkgver}.AppImage::https://github.com/jitsi/jitsi-meet-electron/releases/download/v${pkgver//_/-}/jitsi-meet-${arch[0]}.AppImage"
	"${_pkgname}.desktop")
sha256sums=('9b647910424ed07e6a27dc95c623f14895d094a1d0cf9b12829faa87af0c8327'
            'e11ef8c07bdc5067976f562b236b8c0d683c0e9037f2eb93482c2fd6ba3a5aff')


prepare() {
	chmod u+x      "${srcdir}/jitsi-meet-${arch[0]}-${pkgver}.AppImage"
	"${srcdir}/jitsi-meet-${arch[0]}-${pkgver}.AppImage" --appimage-extract
}

package() {
	find           "${srcdir}/squashfs-root/locales/" -type d -exec chmod 755 {} +
	find           "${srcdir}/squashfs-root/resources/" -type d -exec chmod 755 {} +

	install -d     "${pkgdir}/opt/${_pkgname}"
	cp -r          "${srcdir}/squashfs-root/"*                       "${pkgdir}/opt/${_pkgname}"

	# remove broken or unused files and directories
	rm -r          "${pkgdir}/opt/${_pkgname}/usr/"
	rm             "${pkgdir}/opt/${_pkgname}/AppRun"
	rm             "${pkgdir}/opt/${_pkgname}/jitsi-meet.desktop"
	rm             "${pkgdir}/opt/${_pkgname}/jitsi-meet.png"
	# Since 2.8.4 jitsi-meet is a bash script that needs to point to jitsi-meet.bin, the bash script that jitsi ships is broken without this
#    cat > ${pkgdir}/opt/${_pkgname}/jitsi-meet << EOF
##!/bin/bash
#/opt/${_pkgname}/jitsi-meet.bin --no-sandbox "\$@"
#EOF

	find           "${srcdir}/squashfs-root/usr/share/icons/" -type d -exec chmod 755 {} +

	install -d     "${pkgdir}/usr/share/icons"
	cp -r          "${srcdir}/squashfs-root/usr/share/icons/hicolor" "${pkgdir}/usr/share/icons/hicolor"

	install -d     "${pkgdir}/usr/bin"
	ln -s          "../../opt/${_pkgname}/jitsi-meet"                "${pkgdir}/usr/bin/${_pkgname}"

	install -Dm644 "${srcdir}/${_pkgname}.desktop"                   "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
}