The deb's /etc/cron.daily/microsoft-edge runs a script that writes an apt keyring to /usr/share/keyrings every day. pacman doesn't track that file, so it stays behind after Edge is removed. Remove the cron job and its script the way the Chrome recipe already does, and skip the empty /etc left behind. pkgrel 2 so this build replaces AUR-installed copies. Found in a Codex review. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
75 lines
2.9 KiB
Bash
75 lines
2.9 KiB
Bash
|
|
# Maintainer: Peter Jung <ptr1337@archlinux.org>
|
|
# Contributor: Aakash Hemadri <aakashhemadri123@gmail.com>
|
|
# Contributor: Nicolas Narvaez <nicomix1006@gmail.com>
|
|
# Contributor: Luna Jernberg <droidbittin@gmail.com>
|
|
# Contributor: EsauPR
|
|
# Contributor: nowy
|
|
|
|
pkgname=microsoft-edge-stable-bin
|
|
_pkgname=microsoft-edge
|
|
_pkgshortname=msedge
|
|
_channel=stable
|
|
pkgver=154.0.4258.37
|
|
pkgrel=2
|
|
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.microsoftedgeinsider.com/en-us/download"
|
|
license=('Licenseref-custom')
|
|
provides=('microsoft-edge-stable' 'edge-stable')
|
|
conflicts=('microsoft-edge-stable' 'edge-stable' 'edge-stable-bin' 'edge')
|
|
depends=('gtk3' 'libcups' 'nss' 'alsa-lib' 'libxtst' 'libdrm' 'mesa' 'libxml2')
|
|
makedepends=('imagemagick')
|
|
optdepends=(
|
|
'libpipewire: 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'
|
|
'libunity: for download progress on KDE'
|
|
'ttf-liberation: fix fonts for some PDFs - CRBug #369991'
|
|
'xdg-utils'
|
|
)
|
|
options=(!strip !zipman !emptydirs)
|
|
source=("https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/${_pkgname}-${_channel}_${pkgver}-1_amd64.deb"
|
|
"microsoft-edge-stable.sh"
|
|
"Microsoft Standard Application License Terms - Standalone (free) Use Terms.pdf")
|
|
sha256sums=('c6fa2974733991321b46c4064b785cdec5a14d8cddd182bc5fda057e37e7603d'
|
|
'dc3765d2de6520b13f105b8001aa0e40291bc9457ac508160b23eea8811e26af'
|
|
'edf2ed596eb068f168287fc76aa713ad5e0afb59f0a0a47a4f29c0c124ade15e')
|
|
|
|
package() {
|
|
bsdtar -xf data.tar.xz -C "$pkgdir/"
|
|
|
|
# suid sandbox
|
|
chmod 4755 "${pkgdir}/opt/microsoft/${_pkgshortname}/msedge-sandbox"
|
|
|
|
# 256 and 24 are proper colored icons
|
|
for res in 128 64 48 32; do
|
|
magick "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_256.png" \
|
|
-resize ${res}x${res} \
|
|
"${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_${res}.png"
|
|
done
|
|
for res in 22 16; do
|
|
magick "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_24.png" \
|
|
-resize ${res}x${res} \
|
|
"${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_${res}.png"
|
|
done
|
|
|
|
# install icons
|
|
for res in 16 24 32 48 64 128 256; do
|
|
install -Dm644 "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_${res}.png" \
|
|
"${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/${_pkgname}.png"
|
|
done
|
|
|
|
# User flag aware launcher
|
|
install -m755 microsoft-edge-stable.sh "${pkgdir}/usr/bin/microsoft-edge-stable"
|
|
# License
|
|
install -Dm644 'Microsoft Standard Application License Terms - Standalone (free) Use Terms.pdf' "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.pdf"
|
|
rm "${pkgdir}/opt/microsoft/${_pkgshortname}"/product_logo_*.png
|
|
|
|
# Remove the Debian cron job, which installs an apt keyring pacman doesn't track
|
|
rm -r \
|
|
"${pkgdir}/etc/cron.daily/" \
|
|
"${pkgdir}/opt/microsoft/${_pkgshortname}/cron/"
|
|
}
|