39 lines
1.4 KiB
Bash
39 lines
1.4 KiB
Bash
# 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=126.0.2592.56
|
|
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=(e46b74f9f5e35e8c5fecb2a994403adbbb9788289f45c5f3d476ffdc98f0eb00
|
|
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
|
|
}
|