testing/jitsi-meet: new aport

WebRTC JavaScript video conferences
This commit is contained in:
Noel Kuntze 2023-03-17 18:02:12 +01:00 committed by psykose
parent 54d76b7f68
commit ad43bdde46
2 changed files with 83 additions and 0 deletions

View File

@ -0,0 +1,70 @@
# Maintainer: Noel Kuntze <noel.kuntze@contauro.com>
pkgname=jitsi-meet
pkgver=2.0.8319
# the releases prefix the tag
_pkgver="jitsi-meet_${pkgver##*.}"
pkgrel=0
pkgdesc="WebRTC JavaScript video conferences"
url="https://github.com/jitsi/jitsi-meet"
arch="x86_64"
license="Apache-2.0"
# depends="jicofo jitsi-videobridge nginx"
makedepends="npm"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jitsi/jitsi-meet/archive/stable/$_pkgver.tar.gz
openssl3.patch
"
builddir="$srcdir/$pkgname-stable-$_pkgver"
options="!check" # No test suite
build() {
npm ci
make
make source-package
}
package() {
DESTDIR="$pkgdir"/usr/share/$pkgname
CONFDIR="$pkgdir"/etc/jitsi/meet
install -d "$DESTDIR"
install -d "$CONFDIR"
tar xjf "$pkgname.tar.bz2" -C "$DESTDIR" --strip 1
install -Dm644 -t "$DESTDIR" manifest.json
# Hack https://github.com/jitsi/jitsi-meet/pull/6925
for l in $(node -p "Object.keys(require('./lang/languages.json')).join(' ')"); do
c=${l:0:2}
if [ -f "node_modules/i18n-iso-countries/langs/$c.json" ]; then
install -m644 "node_modules/i18n-iso-countries/langs/$c.json" "$DESTDIR/lang/countries-$l.json"
fi
done
# get rid of all local references
find "$DESTDIR" -type f -name "*.js" -exec sed -i "s#$builddir##g" "{}" \+
# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/npm/issues/9359 for details.
chmod -R 755 "$DESTDIR"
# configuration files
for i in interface_config.js config.js; do
install -Dm644 "$DESTDIR/$i" "$CONFDIR/$i"
ln -sf "/etc/jitsi/meet/$i" "$DESTDIR/$i"
done
# documentation
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" doc/debian/jitsi-meet/jitsi-meet.example doc/debian/jitsi-meet/jitsi-meet.example-apache config.js
sed -i "s@/usr/share/jitsi-meet@/usr/share/webapps/$pkgname@" "$pkgdir/usr/share/doc/$pkgname/"*
sed -i "s@/etc/jitsi/meet@/etc/webapps/$pkgname@" "$pkgdir/usr/share/doc/$pkgname/"*
# npm gives ownership of ALL FILES to build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "$pkgdir"
}
sha512sums="
568f3c57da325332a77e19b04b9d24da034f17fbd3786552d93e68dc5180cf22aed587cafc3101c4256b1a0855427da64c3db32f9ecdad4d8586acf8646429c0 jitsi-meet-2.0.8319.tar.gz
f752d2eafd7f4e3a331c92b8ad25e6c150d608303fe74f32950a8deb55784853bd7225923d71ab55778b828955e150058e725d85995e4e6f776855015e4e16a9 openssl3.patch
"

View File

@ -0,0 +1,13 @@
diff --git a/Makefile b/Makefile
index 040f8c9..bcbf826 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ endif
all: compile deploy clean
compile:
- NODE_OPTIONS=--max-old-space-size=8192 \
+ NODE_OPTIONS="--max-old-space-size=8192 --openssl-legacy-provider" \
$(WEBPACK)
clean: