summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Wilms2020-11-29 14:39:40 +0100
committerKevin Wilms2020-11-29 14:39:40 +0100
commit5e7d101519a0c4e24987032aa465438495434985 (patch)
tree8496b371adc25be85243b52f3c8f82c16530714b
downloadaur-5e7d101519a0c4e24987032aa465438495434985.tar.gz
Based on Edge 88.0.702.0
-rw-r--r--.SRCINFO44
-rw-r--r--Netflix.pngbin0 -> 174548 bytes
-rw-r--r--PKGBUILD78
-rw-r--r--Twitch.pngbin0 -> 91250 bytes
-rw-r--r--YouTube.pngbin0 -> 20142 bytes
-rw-r--r--netflix.desktop14
-rw-r--r--twitch.desktop14
-rw-r--r--videobrowser.sh15
-rw-r--r--youtube.desktop14
9 files changed, 179 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..6c2520e66e8d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,44 @@
+pkgbase = videobrowser
+ pkgdesc = Browser with shortcuts for Videoplatforms. Based on Microsoft Edge Dev. New Shortcuts can i make just in time.
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://www.microsoftedgeinsider.com/en-us/download
+ arch = x86_64
+ license = custom
+ makedepends = imagemagick
+ depends = gtk3
+ depends = libcups
+ depends = nss
+ depends = alsa-lib
+ depends = libxtst
+ depends = libdrm
+ depends = mesa
+ optdepends = libpipewire02: WebRTC desktop sharing under Wayland
+ optdepends = kdialog: for file dialogs in KDE
+ optdepends = gnome-keyring: for storing passwords in GNOME keyring
+ optdepends = kwallet: for storing passwords in KWallet
+ optdepends = gtk3-print-backends: for printing
+ optdepends = libunity: for download progress on KDE
+ optdepends = ttf-liberation: fix fonts for some PDFs - CRBug #369991
+ optdepends = xdg-utils
+ options = !strip
+ options = !zipman
+ source = https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/microsoft-edge-dev_88.0.702.0-1_amd64.deb
+ source = videobrowser.sh
+ source = Netflix.png
+ source = netflix.desktop
+ source = youtube.desktop
+ source = YouTube.png
+ source = Twitch.png
+ source = twitch.desktop
+ sha256sums = 7dc49f9069241e62846dcdf6211ff15128ddf8ebe151426ee8f8a40d92b07586
+ sha256sums = 3516070a2bcfa8d28989975813a32a4b197d30aa629ea20632a1fc5b2b83aa20
+ sha256sums = 0d15536c32f31a6625609df76de33b9429c12cb970b6cda4db1044b6d9c272e9
+ sha256sums = dbfdb72600e77f07b07d3d8d5ba08f7ee73825e4775b6e2d02a8f8d0ab0b381e
+ sha256sums = e0860d58f7676b88244a232ca7d4aa9e5c9180017b665d0d6b54b066f3a62ed3
+ sha256sums = c42f9d3d58eafd4b95044ef818ee0c32b5120d57f4212f0cdd9ec878a477a2b9
+ sha256sums = ec1008447123d58511bd4738d5adc022aa7090f14d2776eb6a487c9a0a7e9855
+ sha256sums = 717bde96aba89d6a01ff6ce92e2e16c91a1b4646e07d0f1998442e9aa060fe93
+
+pkgname = videobrowser
+
diff --git a/Netflix.png b/Netflix.png
new file mode 100644
index 000000000000..f41262c83843
--- /dev/null
+++ b/Netflix.png
Binary files differ
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..3243c595bb1c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,78 @@
+# Maintainer: Kevin Wilms <niemandausduisburg@gmx.net>
+
+pkgname=videobrowser
+pkgver=1.0
+_srcname=microsoft-edge-dev
+_pkgshortname=msedge-dev
+_srcpkgver=88.0.702.0
+pkgrel=1
+pkgdesc="Browser with shortcuts for Videoplatforms. Based on Microsoft Edge Dev. New Shortcuts can i make just in time."
+arch=('x86_64')
+url="https://www.microsoftedgeinsider.com/en-us/download"
+license=('custom')
+provides=()
+conflicts=()
+depends=('gtk3' 'libcups' 'nss' 'alsa-lib' 'libxtst' 'libdrm' 'mesa')
+makedepends=('imagemagick')
+optdepends=('libpipewire02: WebRTC desktop sharing under Wayland'
+ 'kdialog: for file dialogs in KDE'
+ 'gnome-keyring: for storing passwords in GNOME keyring'
+ 'kwallet: for storing passwords in KWallet'
+ 'gtk3-print-backends: for printing'
+ 'libunity: for download progress on KDE'
+ 'ttf-liberation: fix fonts for some PDFs - CRBug #369991'
+ 'xdg-utils')
+options=(!strip !zipman)
+_channel=dev
+source=("https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/${_srcname}_${_srcpkgver}-1_amd64.deb"
+ "videobrowser.sh"
+ "Netflix.png"
+ "netflix.desktop"
+ "youtube.desktop"
+ "YouTube.png"
+ "Twitch.png"
+ "twitch.desktop")
+sha256sums=('7dc49f9069241e62846dcdf6211ff15128ddf8ebe151426ee8f8a40d92b07586'
+ '3516070a2bcfa8d28989975813a32a4b197d30aa629ea20632a1fc5b2b83aa20'
+ '0d15536c32f31a6625609df76de33b9429c12cb970b6cda4db1044b6d9c272e9'
+ 'dbfdb72600e77f07b07d3d8d5ba08f7ee73825e4775b6e2d02a8f8d0ab0b381e'
+ 'e0860d58f7676b88244a232ca7d4aa9e5c9180017b665d0d6b54b066f3a62ed3'
+ 'c42f9d3d58eafd4b95044ef818ee0c32b5120d57f4212f0cdd9ec878a477a2b9'
+ 'ec1008447123d58511bd4738d5adc022aa7090f14d2776eb6a487c9a0a7e9855'
+ '717bde96aba89d6a01ff6ce92e2e16c91a1b4646e07d0f1998442e9aa060fe93')
+
+package() {
+ bsdtar -xf data.tar.xz -C "$pkgdir/"
+ mkdir "$pkgdir/opt/videobrowser"
+ cp -r "$pkgdir/opt/microsoft" "$pkgdir/opt/videobrowser/microsoft"
+ rm -rf "$pkgdir/opt/microsoft"
+
+ # suid sandbox
+ chmod 4755 "${pkgdir}/opt/videobrowser/microsoft/${_pkgshortname}/msedge-sandbox"
+
+ # create Icons for Apps
+ for _size in "256x256" "192x192" "128x128" "96x96" "64x64" "48x48" "32x32" "24x24" "22x22" "20x20" "16x16" "8x8"
+ do
+ install -dm755 "${pkgdir}/usr/share/icons/hicolor/${_size}/apps"
+ convert "${srcdir}/Netflix.png" -resize "${_size}" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/Netflix.png"
+ convert "${srcdir}/YouTube.png" -resize "${_size}" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/Youtube.png"
+ convert "${srcdir}/Twitch.png" -resize "${_size}" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/Twitch.png"
+ done
+
+ # User flag aware launcher
+ install -m755 videobrowser.sh "${pkgdir}/usr/bin/videobrowser"
+
+ # Install Shortcuts
+ install -Dm644 "${srcdir}/netflix.desktop" "${pkgdir}/usr/share/applications/netflix.desktop"
+ install -Dm644 "${srcdir}/youtube.desktop" "${pkgdir}/usr/share/applications/youtube.desktop"
+ install -Dm644 "${srcdir}/twitch.desktop" "${pkgdir}/usr/share/applications/twitch.desktop"
+
+ # Cleanup
+ rm -rf "${pkgdir}/usr/bin/microsoft-edge-dev"
+ rm -rf "${pkgdir}/usr/share/applications/microsoft-edge-dev.desktop"
+ rm -rf "${pkgdir}/usr/share/appdata"
+ rm -rf "${pkgdir}/usr/share/doc"
+ rm -rf "${pkgdir}/usr/share/gnome-control-center"
+ rm -rf "${pkgdir}/usr/share/man"
+ rm -rf "${pkgdir}/usr/share/menu"
+}
diff --git a/Twitch.png b/Twitch.png
new file mode 100644
index 000000000000..aac5c622bcd7
--- /dev/null
+++ b/Twitch.png
Binary files differ
diff --git a/YouTube.png b/YouTube.png
new file mode 100644
index 000000000000..8d0a78bd557a
--- /dev/null
+++ b/YouTube.png
Binary files differ
diff --git a/netflix.desktop b/netflix.desktop
new file mode 100644
index 000000000000..c6cf9b84550c
--- /dev/null
+++ b/netflix.desktop
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Version=1.0
+Name=Netflix
+# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
+# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
+GenericName=Netflix
+Exec=/usr/bin/videobrowser %U https://www.netflix.com/de/ --start-fullscreen
+StartupNotify=true
+Terminal=false
+Icon=Netflix
+Type=Application
+Categories=Network;WebBrowser;
+MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;
+Actions=new-window;new-private-window;
diff --git a/twitch.desktop b/twitch.desktop
new file mode 100644
index 000000000000..1c5542eef5b3
--- /dev/null
+++ b/twitch.desktop
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Version=1.0
+Name=Twitch
+# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
+# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
+GenericName=Twitch
+Exec=/usr/bin/videobrowser %U https://www.twitch.tv/ --start-fullscreen
+StartupNotify=true
+Terminal=false
+Icon=Twitch
+Type=Application
+Categories=Network;WebBrowser;
+MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;
+Actions=new-window;new-private-window;
diff --git a/videobrowser.sh b/videobrowser.sh
new file mode 100644
index 000000000000..0d4ad949f96d
--- /dev/null
+++ b/videobrowser.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env sh
+# Launches MS Edge with flags specified in $XDG_CONFIG_HOME/microsoft-edge-dev-flags.conf
+
+# Make script fail if `cat` fails for some reason
+set -e
+
+# Set default value if variable is unset/null
+XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
+
+# Attempt to read a config file if it exists
+if [ -r "${XDG_CONFIG_HOME}/microsoft-edge-dev-flags.conf" ]; then
+ EDGE_USER_FLAGS="$(cat "$XDG_CONFIG_HOME/microsoft-edge-dev-flags.conf")"
+fi
+
+exec /opt/videobrowser/microsoft/msedge-dev/microsoft-edge-dev $EDGE_USER_FLAGS "$@"
diff --git a/youtube.desktop b/youtube.desktop
new file mode 100644
index 000000000000..95d8e82fe2a7
--- /dev/null
+++ b/youtube.desktop
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Version=1.0
+Name=Youtube
+# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
+# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
+GenericName=Youtube
+Exec=/usr/bin/videobrowser %U https://www.youtube.com/ --start-fullscreen
+StartupNotify=true
+Terminal=false
+Icon=Youtube
+Type=Application
+Categories=Network;WebBrowser;
+MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;
+Actions=new-window;new-private-window;