aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/jitsi-meet-desktop/README10
-rw-r--r--network/jitsi-meet-desktop/doinst.sh9
-rw-r--r--network/jitsi-meet-desktop/jitsi-meet-desktop.SlackBuild105
-rw-r--r--network/jitsi-meet-desktop/jitsi-meet-desktop.desktop9
-rw-r--r--network/jitsi-meet-desktop/jitsi-meet-desktop.info10
-rw-r--r--network/jitsi-meet-desktop/slack-desc19
6 files changed, 162 insertions, 0 deletions
diff --git a/network/jitsi-meet-desktop/README b/network/jitsi-meet-desktop/README
new file mode 100644
index 000000000000..0233a9b22be0
--- /dev/null
+++ b/network/jitsi-meet-desktop/README
@@ -0,0 +1,10 @@
+Jitsi Meet is the Secure, Simple and Scalable Video Conferences that
+you use as a standalone app or embed in your web application.
+This is the Jitsi Meet desktop application, powered by Electron.
+
+This SlackBuild repackages the upstream AppImage. The AppImage is only
+available for 64-bit systems.
+
+This is not to be confused with Jitsi Desktop (packaged as jitsi at
+SlackBuilds.org), the legacy desktop application that works with
+xmpp and sip servers for chat and video calls.
diff --git a/network/jitsi-meet-desktop/doinst.sh b/network/jitsi-meet-desktop/doinst.sh
new file mode 100644
index 000000000000..65c7e2eeb9aa
--- /dev/null
+++ b/network/jitsi-meet-desktop/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/network/jitsi-meet-desktop/jitsi-meet-desktop.SlackBuild b/network/jitsi-meet-desktop/jitsi-meet-desktop.SlackBuild
new file mode 100644
index 000000000000..e956846b80c3
--- /dev/null
+++ b/network/jitsi-meet-desktop/jitsi-meet-desktop.SlackBuild
@@ -0,0 +1,105 @@
+#!/bin/bash
+
+# Slackware build script for jitsi-meet-desktop
+
+# Copyright 2022 Isaac Yu <isaacyu1@isaacyu1.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=jitsi-meet-desktop
+VERSION=${VERSION:-2022.11.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ ARCH=$(uname -m)
+fi
+
+case "$ARCH" in
+ # do nothing and pass through
+ x86_64) ;;
+ *)
+ echo "$ARCH is not supported for $PRGNAM-$VERSION"
+ exit 1
+ ;;
+esac
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+
+# Extract AppImage at the new jitsi-meet-desktop folder
+rm -rf jitsi-meet-desktop
+mkdir jitsi-meet-desktop
+cp $CWD/jitsi-meet-$ARCH.AppImage jitsi-meet-desktop
+cd jitsi-meet-desktop
+chmod u+x jitsi-meet-$ARCH.AppImage
+./jitsi-meet-$ARCH.AppImage --appimage-extract
+rm jitsi-meet-$ARCH.AppImage # Once AppImage is extracted, remove it from /tmp/SBo/jitsi-meet-desktop
+
+find squashfs-root/locales/ -type d -exec chmod 755 {} +
+find squashfs-root/resources/ -type d -exec chmod 755 {} +
+
+install -d $PKG/opt/$PRGNAM
+cp -r squashfs-root/* $PKG/opt/$PRGNAM
+
+# remove broken or unused files and directories
+rm -r $PKG/opt/$PRGNAM/usr/
+rm $PKG/opt/$PRGNAM/AppRun
+rm $PKG/opt/$PRGNAM/jitsi-meet.desktop
+rm $PKG/opt/$PRGNAM/jitsi-meet.png
+
+find squashfs-root/usr/share/icons/ -type d -exec chmod 755 {} +
+
+install -d $PKG/usr/share/icons
+cp -r squashfs-root/usr/share/icons/hicolor $PKG/usr/share/icons/hicolor
+
+install -d $PKG/usr/bin
+ln -s ../../opt/$PRGNAM/jitsi-meet $PKG/usr/bin/$PRGNAM
+
+# Install custom desktop file
+install -Dm644 "$CWD/$PRGNAM.desktop" $PKG/usr/share/applications/$PRGNAM.desktop
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a squashfs-root/LICENSE.electron.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/jitsi-meet-desktop/jitsi-meet-desktop.desktop b/network/jitsi-meet-desktop/jitsi-meet-desktop.desktop
new file mode 100644
index 000000000000..68bae15591f2
--- /dev/null
+++ b/network/jitsi-meet-desktop/jitsi-meet-desktop.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Jitsi Meet
+Comment=Jitsi Meet Desktop App
+Exec=jitsi-meet-desktop
+Terminal=false
+Type=Application
+Icon=jitsi-meet-desktop
+StartupWMClass=Jitsi Meet
+Categories=VideoConference;AudioVideo;Audio;Video;Network;
diff --git a/network/jitsi-meet-desktop/jitsi-meet-desktop.info b/network/jitsi-meet-desktop/jitsi-meet-desktop.info
new file mode 100644
index 000000000000..98c470c30777
--- /dev/null
+++ b/network/jitsi-meet-desktop/jitsi-meet-desktop.info
@@ -0,0 +1,10 @@
+PRGNAM="jitsi-meet-desktop"
+VERSION="2022.11.0"
+HOMEPAGE="https://jitsi.org/"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://github.com/jitsi/jitsi-meet-electron/releases/download/v2022.11.0/jitsi-meet-x86_64.AppImage"
+MD5SUM_x86_64="64cb0db01f1c06f17361022321c681e1"
+REQUIRES=""
+MAINTAINER="Isaac Yu"
+EMAIL="isaacyu1@isaacyu1.com"
diff --git a/network/jitsi-meet-desktop/slack-desc b/network/jitsi-meet-desktop/slack-desc
new file mode 100644
index 000000000000..58ff485eee6c
--- /dev/null
+++ b/network/jitsi-meet-desktop/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+jitsi-meet-desktop: jitsi-meet-desktop (Jitsi Meet Desktop Application)
+jitsi-meet-desktop:
+jitsi-meet-desktop: Jitsi Meet is the Secure, Simple and Scalable Video Conferences that
+jitsi-meet-desktop: you use as a standalone app or embed in your web application.
+jitsi-meet-desktop: This is the Jitsi Meet desktop application, powered by Electron.
+jitsi-meet-desktop:
+jitsi-meet-desktop:
+jitsi-meet-desktop:
+jitsi-meet-desktop:
+jitsi-meet-desktop:
+jitsi-meet-desktop: