summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuologic2020-06-18 17:00:33 +0200
committerDuologic2020-06-18 17:00:33 +0200
commitcb5fba99c311b8d694b4604535e275791b27f38d (patch)
tree8c0ebc1348be7c043dac519f962a233ae3457fe1
downloadaur-cb5fba99c311b8d694b4604535e275791b27f38d.tar.gz
initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD20
-rw-r--r--ZoomFirefox.desktop13
-rwxr-xr-xzoom-firefox10
-rw-r--r--zoom-firefox.install16
6 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7bc26493bdb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = zoom-firefox
+ pkgdesc = .desktop file for running Zoom in Firefox
+ pkgver = 0.0.1
+ pkgrel = 1
+ install = zoom-firefox.install
+ arch = x86_64
+ license = MIT
+ depends = firefox
+ optdepends = xdg-utils
+ source = ZoomFirefox.desktop
+ source = zoom-firefox
+ sha512sums = fd32a73eb0096f8cb95cbf44e89bf132090000e1b4465c0096f06753ac26bc73652490971f0006f809aa689d64b8fb043e049fe9cc3ed06f63b28506c178e33b
+ sha512sums = e8ba856ccec6cd9d730ef8b5a43aa82c1e0189c50cdfc02d823d0e913024243c9d59c9bd313edd039d3ba8e1c8ba08ff97d69c1bfd1e4f4997edc8b535206be7
+
+pkgname = zoom-firefox
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..b11364e3edb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/zoom-firefox-*.pkg.*
+/pkg
+/src
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2877e6525b2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Excitable Snowball <excitablesnowball@gmail.com>
+
+pkgname=zoom-firefox
+pkgver=0.0.1
+pkgrel=1
+pkgdesc=".desktop file for running Zoom in Firefox"
+arch=('x86_64')
+license=('MIT')
+depends=('firefox')
+optdepends=('xdg-utils')
+install=zoom-firefox.install
+source=('ZoomFirefox.desktop'
+ 'zoom-firefox')
+sha512sums=('fd32a73eb0096f8cb95cbf44e89bf132090000e1b4465c0096f06753ac26bc73652490971f0006f809aa689d64b8fb043e049fe9cc3ed06f63b28506c178e33b'
+ 'e8ba856ccec6cd9d730ef8b5a43aa82c1e0189c50cdfc02d823d0e913024243c9d59c9bd313edd039d3ba8e1c8ba08ff97d69c1bfd1e4f4997edc8b535206be7')
+
+package() {
+ install -Dm755 zoom-firefox "$pkgdir"/usr/bin/zoom-firefox
+ install -Dm644 ZoomFirefox.desktop "$pkgdir"/usr/share/applications/ZoomFirefox.desktop
+}
diff --git a/ZoomFirefox.desktop b/ZoomFirefox.desktop
new file mode 100644
index 00000000000..b88792f6047
--- /dev/null
+++ b/ZoomFirefox.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Name=Zoom (to Firefox)
+Comment=Zoom Video Conference
+Exec=/usr/bin/zoom-firefox %U
+Icon=Zoom.png
+Terminal=false
+Type=Application
+Encoding=UTF-8
+Categories=Network;Application;
+StartupWMClass=Zoom
+MimeType=x-scheme-handler/zoommtg;x-scheme-handler/zoomus;x-scheme-handler/tel;x-scheme-handler/callto;x-scheme-handler/zoomphonecall;
+X-KDE-Protocols=zoommtg;zoomus;tel;callto;zoomphonecall;
+Name[en_US]=Zoom (Firefox)
diff --git a/zoom-firefox b/zoom-firefox
new file mode 100755
index 00000000000..5fff2f0d7ee
--- /dev/null
+++ b/zoom-firefox
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+A="zoommtg://zoom.us/join?action=join&confno=258072517&uid=cPfLg0DOSsGcOL--S-kkkg&uname=Jeroen%20Op%20't%20Eynde&pk=hVnA0mY0sBvflWPemirWRfdrYI_deNfm0lVhmbB6nzDJTm1gLwj9PeUIRLxoOuj7a48aLI72BMqHh23TJwgM4GwY9nmuk1IWCoSs1ijsZUQ9z3Tbvscw2TqFNCa_y9HxRBbcVdiGQQ%3D%3D&zc=0&mcv=0.92.11227.0929&confid=ZW1haWw9amVyb2VuJTQwZ3JhZmFuYS5jb20mdXNzPWhWbkEwbVkwc0JrVEdOR2RzQjZGQl9kLWJPSzFLcld3MnlNQS1QSU4wazZ3VUxOYUtDUURDckE2b28zRDFiaS1QSVklM0QmdGlkPTYxMzk3YTgyOTcxYTRiYTY4OWY5Njk3ODIzZGQwZjg0JmFwcD1maXJlZm94&browser=firefox&t=1592491602005"
+saveIFS=$IFS
+IFS='=&'
+parm=($A)
+IFS=$saveIFS
+#https://zoom.us/wc/258072517/join
+
+/usr/bin/firefox "https://grafana.zoom.us/wc/${parm[3]}/join"
diff --git a/zoom-firefox.install b/zoom-firefox.install
new file mode 100644
index 00000000000..73b313fbb8c
--- /dev/null
+++ b/zoom-firefox.install
@@ -0,0 +1,16 @@
+post_install() {
+ echo
+ echo "To configure your desktop environment to open Zoom links in Firefox, run:"
+ echo
+ for scheme in zoommtg zoomus tel callto zoomphonecall; do
+ echo "xdg-mime default ZoomFirefox.desktop x-scheme-handler/$scheme"
+ done
+ echo
+}
+
+post_upgrade() {
+ # xdg-mime instructions added in 0.1.4
+ if [ $(vercmp $2 0.1.3) -le 0 ]; then
+ post_install
+ fi
+}