diff options
author | Christian Heusel | 2023-05-08 23:35:16 +0200 |
---|---|---|
committer | Christian Heusel | 2023-05-08 23:35:16 +0200 |
commit | 7cbb478c53a6c9e0d86ddc12b5e894c54afb6a72 (patch) | |
tree | 21755376d0f09b1c2a1906e329d4ae97ddf16b67 | |
parent | 54a181438b88f591d6a84c2a0d8906850d94f73f (diff) | |
download | aur-7cbb478c53a6c9e0d86ddc12b5e894c54afb6a72.tar.gz |
google-chrome{,-dev,-beta}: drop script and update version command
-rw-r--r-- | PKGBUILD | 2 | ||||
-rwxr-xr-x | update_version.sh | 32 |
2 files changed, 1 insertions, 33 deletions
@@ -4,7 +4,7 @@ # Contributor: t3ddy, Lex Rivera aka x-demon, ruario # Check for new Linux releases in: http://googlechromereleases.blogspot.com/search/label/Dev%20updates -# or use: $ curl -s https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz | gzip -df | xq -x "otherdata/package[@name='google-chrome-$_channel']/version/@ver" +# or use: $ curl -sSf https://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages | grep -A1 "Package: google-chrome-unstable" | awk '/Version/{print $2}' | cut -d '-' -f1 pkgname=google-chrome-dev pkgver=115.0.5750.0 diff --git a/update_version.sh b/update_version.sh deleted file mode 100755 index af059f4d9b76..000000000000 --- a/update_version.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -set -euxo pipefail - -# Get channel -CHANNEL=$(awk -F '=' '/^_channel/{ print $2 }' PKGBUILD) -PKG="google-chrome-${CHANNEL}" - -# Get latest version -VER=$(curl -sSf https://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages | - grep -A1 "Package: ${PKG}" | - awk '/Version/{print $2}' | - cut -d '-' -f1) - -# 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 - -sed -i \ - -e 's/pkgrel=.*/pkgrel=1/' \ - PKGBUILD - -updpkgsums - -# Update .SRCINFO -makepkg --printsrcinfo >.SRCINFO |