# 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 pkgname=microsoft-edge-stable pkgver=130.0.2849.80 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=(e6052efc30ba97feb5a16e53a4cf3e949a4835e82429ccb9daecd820bbf3efc2 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 }