microsoft-edge-stable 124.0.2478.97-1

This commit is contained in:
xhaa123 2024-05-12 13:57:51 +08:00
commit 009def3d7b
2 changed files with 53 additions and 0 deletions

38
PKGBUILD Normal file
View File

@ -0,0 +1,38 @@
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=microsoft-edge-stable
pkgver=124.0.2478.97
pkgrel=1
pkgdesc="A browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier"
arch=('x86_64')
url="https://www.microsoft.com/zh-cn/edge?form=MA13FJ"
license=('custom')
depends=('gtk3' 'libcups' 'nss' 'alsa-lib' 'libxtst' 'libdrm' 'mesa')
options=('!strip' '!zipman')
source=(https://packages.microsoft.com/yumrepos/edge/Packages/m/${pkgname}-${pkgver}-1.x86_64.rpm
microsoft-edge-stable.sh)
sha256sums=(32d9c333544ddd9c56fed54844e89ef00f3e5620942c07b9b68d214016687895
dc3765d2de6520b13f105b8001aa0e40291bc9457ac508160b23eea8811e26af)
package() {
cp --parents -a {opt,usr} ${pkgdir}
# suid sandbox
chmod 4755 ${pkgdir}/opt/microsoft/msedge/msedge-sandbox
# install icons
for res in 16 24 32 48 64 128 256; do
install -Dm644 ${pkgdir}/opt/microsoft/msedge/product_logo_${res}.png \
${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/microsoft-edge.png
done
# User flag aware launcher
install -m755 microsoft-edge-stable.sh ${pkgdir}/usr/bin/microsoft-edge-stable
rm ${pkgdir}/opt/microsoft/msedge/product_logo_*.png
}

15
microsoft-edge-stable.sh Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env sh
# Launches MS Edge with flags specified in $XDG_CONFIG_HOME/microsoft-edge-beta-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-stable-flags.conf" ]; then
EDGE_USER_FLAGS="$(cat "$XDG_CONFIG_HOME/microsoft-edge-stable-flags.conf")"
fi
exec /opt/microsoft/msedge/microsoft-edge $EDGE_USER_FLAGS "$@"