Created
August 22, 2022 23:43
-
-
Save AviKav/b5735e7a74152436fbd7259ec7dab3f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Template file for 'ms-edge-stable' (bashed off of google-chrome) | |
pkgname=ms-edge-stable | |
version=104.0.1293.63 | |
revision=1 | |
_channel=stable | |
archs="x86_64" | |
hostmakedepends="curl tar xz python3 python3-html2text python3-setuptools" | |
depends="gtk+3" | |
short_desc="Attempt at creating a safer, faster, and more stable browser" | |
maintainer="Avi Kav <[email protected]>" | |
license="custom:edge" | |
homepage="https://www.microsoft.com/edge" | |
nostrip=yes | |
restricted=yes | |
repository=nonfree | |
_baseUrl="https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable" | |
_filename="microsoft-edge-${_channel}_${version}-1_amd64.deb" | |
_edgeUrl="${_baseUrl}/${_filename}" | |
# I don't care | |
# _licenseUrl="https://www.google.com/intl/en/chrome/terms/" | |
distfiles="$_edgeUrl" | |
checksum=7a7ff6844a0f3cdefe24403c4cad7976068b040d1072822f3de32ad9bd32ce00 | |
do_extract() { | |
mkdir -p ${DESTDIR} | |
ar x ${XBPS_SRCDISTDIR}/ms-edge-stable-${version}/${_filename} | |
} | |
do_install() { | |
tar xf data.tar.xz -C ${DESTDIR} | |
# Install the icons | |
for size in 16 24 32 48 64 128 256; do | |
# Create the microsoft edge xdg directory | |
mkdir -p ${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps | |
# Copy the microsoft edge icon | |
mv ${DESTDIR}/opt/microsoft/msedge/product_logo_${size}.png \ | |
${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/microsoft-edge.png | |
done | |
# Remove unused icons | |
rm ${DESTDIR}/opt/microsoft/msedge/*.xpm | |
# Remove the Debian/Ubuntu crontab | |
rm -rf ${DESTDIR}/etc | |
rm -rf ${DESTDIR}/opt/microsoft/msedge/cron | |
} | |
# post_install() { | |
# curl ${_licenseUrl} | html2text >> google-chrome-eula.md | |
# vlicense google-chrome-eula.md | |
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
site=https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable | |
pattern='href="microsoft-edge-stable_\K[_\.\d]+?.*(?=-1_amd64\.deb")' | |
single_directory=yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment