Advertisement
Guest User

Untitled

a guest
Apr 16th, 2024
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. # Maintainer: Nicolas Narvaez <nicomix1006@gmail.com>
  2. # Contributor: EsauPR
  3. # Contributor: bittin
  4.  
  5. pkgname=microsoft-edge-stable-bin
  6. _pkgname=microsoft-edge
  7. _pkgshortname=msedge
  8. pkgver=123.0.2420.97
  9. pkgrel=1
  10. pkgdesc="A browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier"
  11. arch=('x86_64')
  12. url="https://www.microsoftedgeinsider.com/en-us/download"
  13. license=('custom')
  14. provides=('microsoft-edge-stable' 'edge-stable')
  15. conflicts=('microsoft-edge-stable' 'edge-stable' 'edge-stable-bin' 'edge')
  16. depends=('gtk3' 'libcups' 'nss' 'alsa-lib' 'libxtst' 'libdrm' 'mesa')
  17. optdepends=(
  18. 'pipewire: WebRTC desktop sharing under Wayland'
  19. 'kdialog: for file dialogs in KDE'
  20. 'gnome-keyring: for storing passwords in GNOME keyring'
  21. 'kwallet: for storing passwords in KWallet'
  22. )
  23. options=(!strip !zipman)
  24. source=("https://packages.microsoft.com/yumrepos/edge/Packages/m/${_pkgname}-stable-${pkgver}-1.x86_64.rpm"
  25. "microsoft-edge-stable.sh")
  26. sha256sums=('5b0d8b60f04a0e71988489e001025113677e645c378fa150ab260af0b4c19b30'
  27. 'dc3765d2de6520b13f105b8001aa0e40291bc9457ac508160b23eea8811e26af')
  28.  
  29. package() {
  30.  
  31. cp --parents -a {opt,usr} "$pkgdir"
  32. # suid sandbox
  33. chmod 4755 "${pkgdir}/opt/microsoft/${_pkgshortname}/msedge-sandbox"
  34. # install icons
  35. for res in 16 24 32 48 64 128 256; do
  36. install -Dm644 "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_${res}.png" \
  37. "${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/${_pkgname}.png"
  38. done
  39. # User flag aware launcher
  40. install -m755 microsoft-edge-stable.sh "${pkgdir}/usr/bin/microsoft-edge-stable"
  41.  
  42. rm "${pkgdir}/opt/microsoft/${_pkgshortname}"/product_logo_*.png
  43. }
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement