diff --git a/.SRCINFO b/.SRCINFO index d2c302c1f3c8..b044f6812101 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = microsoft-edge-stable-bin pkgdesc = A browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier - pkgver = 143.0.3650.66 + pkgver = 143.0.3650.139 pkgrel = 1 url = https://www.microsoftedgeinsider.com/en-us/download arch = x86_64 @@ -29,10 +29,10 @@ pkgbase = microsoft-edge-stable-bin conflicts = edge options = !strip options = !zipman - source = https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_143.0.3650.66-1_amd64.deb + source = https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_143.0.3650.139-1_amd64.deb source = microsoft-edge-stable.sh source = Microsoft Standard Application License Terms - Standalone (free) Use Terms.pdf - sha256sums = 39a93bafbca438326cab375bf9c126ce452b71ecd351ef9797da28d6552babac + sha256sums = b0b9fc965c3cc1d2cb025d3019b0544f89f28d88997205d2ecb342c294dbfea4 sha256sums = dc3765d2de6520b13f105b8001aa0e40291bc9457ac508160b23eea8811e26af sha256sums = edf2ed596eb068f168287fc76aa713ad5e0afb59f0a0a47a4f29c0c124ade15e diff --git a/.nvchecker.toml b/.nvchecker.toml new file mode 100644 index 000000000000..82710fb42495 --- /dev/null +++ b/.nvchecker.toml @@ -0,0 +1,4 @@ +[microsoft-edge-stable-bin] +source = "regex" +url = "https://packages.microsoft.com/repos/edge/dists/stable/main/binary-amd64/Packages" +regex = "(?s)Package: microsoft-edge-stable\\n.*?Version: ([0-9.]+)-" diff --git a/PKGBUILD b/PKGBUILD index a7c960a84e70..a50ed9f65300 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,4 +1,5 @@ -# Maintainer: Aakash Hemadri +# Maintainer +# Contributor: Aakash Hemadri # Contributor: Nicolas Narvaez # Contributor: Luna Jernberg # Contributor: EsauPR @@ -8,7 +9,7 @@ pkgname=microsoft-edge-stable-bin _pkgname=microsoft-edge _pkgshortname=msedge _channel=stable -pkgver=143.0.3650.66 +pkgver=143.0.3650.139 pkgrel=1 pkgdesc="A browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier" arch=('x86_64') @@ -32,9 +33,9 @@ options=(!strip !zipman) 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=('39a93bafbca438326cab375bf9c126ce452b71ecd351ef9797da28d6552babac' - 'dc3765d2de6520b13f105b8001aa0e40291bc9457ac508160b23eea8811e26af' - 'edf2ed596eb068f168287fc76aa713ad5e0afb59f0a0a47a4f29c0c124ade15e') +sha256sums=('b0b9fc965c3cc1d2cb025d3019b0544f89f28d88997205d2ecb342c294dbfea4' + 'dc3765d2de6520b13f105b8001aa0e40291bc9457ac508160b23eea8811e26af' + 'edf2ed596eb068f168287fc76aa713ad5e0afb59f0a0a47a4f29c0c124ade15e') package() { bsdtar -xf data.tar.xz -C "$pkgdir/" diff --git a/update_version.sh b/update_version.sh deleted file mode 100755 index f8ae0a29e16d..000000000000 --- a/update_version.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/bash -set -x -# This script updates the package version if a new version is available -set -euxo pipefail - -# Pull latest changes -git pull - -# Get channel -CHANNEL=$(awk -F '=' '/^_channel/{ print $2 }' PKGBUILD) -PKG="microsoft-edge-${CHANNEL}" - -# Get latest version -VER=$(curl -sSf https://packages.microsoft.com/repos/edge/dists/stable/main/binary-amd64/Packages | - grep -A6 "Package: ${PKG}" | - awk '/Version/{print $2}' | - cut -d '-' -f1 | - sort -V -r | - head -n1) - -# Insert latest version into PKGBUILD and update hashes -sed -i \ - -e "s/^pkgver=.*/pkgver=${VER}/" \ - PKGBUILD - -# Check whether this changed anything -if (git diff --exit-code PKGBUILD); then - echo "Package ${PKG} has most recent version ${VER}" - exit 0 -fi - -SUM256=$(curl -sSf https://packages.microsoft.com/repos/edge/dists/stable/main/binary-amd64/Packages | - grep -A15 "Package: ${PKG}" | - grep -A13 "Version: ${VER}" | - awk '/SHA256/{print $2}' | - sort -V -r | - head -n1) - -# Insert latest shasum into PKGBUILD and update hashes -sed -i \ - -e "s/^sha256sums=('.*/sha256sums=('${SUM256}'/" \ - PKGBUILD - -# Reset pkgrel -sed -i \ - -e 's/pkgrel=.*/pkgrel=1/' \ - PKGBUILD - -# Preparing arch-chroot -CHROOT=$HOME/.local/share/chroot -if [[ ! -d "$CHROOT" ]]; then - mkdir -p ~/.local/share/chroot - mkarchroot $HOME/.local/share/chroot/root base-devel - arch-nspawn $HOME/.local/share/chroot/root pacman -Syu -fi - -# Start generate package -makechrootpkg -c -r $CHROOT -- -Acsf . - -# Update .SRCINFO -makepkg --printsrcinfo >.SRCINFO - -# Commit changes -git add PKGBUILD .SRCINFO -git commit -s -m "Update ${PKG} to v${VER}" -rm -rf *.deb *.rpm *.log *.zst