mirror of
https://github.com/luzifer-aur/google-chrome.git
synced 2024-12-20 14:41:20 +00:00
Change maintainer, add update-script
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
beeec1dc35
commit
630ada83ba
2 changed files with 33 additions and 4 deletions
9
PKGBUILD
9
PKGBUILD
|
@ -1,4 +1,5 @@
|
|||
# Maintainer: Det <nimetonmaili g-mail>
|
||||
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
||||
# Contributor: Det <nimetonmaili g-mail>
|
||||
# Contributors: t3ddy, Lex Rivera aka x-demon, ruario
|
||||
|
||||
# Check for new Linux releases in: http://googlechromereleases.blogspot.com/search/label/Stable%20updates
|
||||
|
@ -25,9 +26,9 @@ _channel=stable
|
|||
source=("google-chrome-${_channel}_${pkgver}_amd64.deb::https://dl.google.com/linux/direct/google-chrome-${_channel}_current_amd64.deb"
|
||||
'eula_text.html'
|
||||
"google-chrome-$_channel.sh")
|
||||
md5sums=('b56349493b87666ce091e9c7ff37cee8'
|
||||
'd50d8f0a6940791eabc41c4f64e6a3cf'
|
||||
'99fa93d5e7fb5d622cef0f9621f3ffa3')
|
||||
sha512sums=('0e07c332a41556db263d6d1d506268a18209e6211a525c23729bf1556ac3cc18b235cf0e093350516f5f9900fb2fb843d2ea46bf6f3a1ce70076c441c5e33257'
|
||||
'a225555c06b7c32f9f2657004558e3f996c981481dbb0d3cd79b1d59fa3f05d591af88399422d3ab29d9446c103e98d567aeafe061d9550817ab6e7eb0498396'
|
||||
'e1a76d6aa17a13325e30329fde5d7acd5f6863c6b4fc8a9b521b1995342447ab71188b1a176b58ed95a409659936544cf4e8cb492e0fda69dabfeae24f02bbf3')
|
||||
|
||||
## Previous versions (also see: /var/cache/pacman/pkg/google-chrome-[^a-z]*):
|
||||
#source[0]="https://dl.google.com/linux/deb/pool/main/g/google-chrome-${_channel}/google-chrome-${_channel}_${pkgver}-1_amd64.deb"
|
||||
|
|
28
update_version.sh
Executable file
28
update_version.sh
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
# Get channel
|
||||
CHANNEL=$(awk -F '=' '/^_channel/{ print $2 }' PKGBUILD)
|
||||
PKG="google-chrome-${CHANNEL}"
|
||||
|
||||
# Get latest version
|
||||
VER=$(curl -sL "https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz" | gzip -df |
|
||||
tr ' ' '\n' | grep -e name= -e ver= | cut -d '"' -f2 | sed 'N;s/\n/ /' |
|
||||
grep "${PKG}" | cut -d ' ' -f 2)
|
||||
|
||||
# Insert latest version into PKGBUILD and update hashes
|
||||
sed -i "s/^pkgver=.*/pkgver=${VER}/" PKGBUILD
|
||||
updpkgsums
|
||||
|
||||
# Check whether this changed anything
|
||||
if (git diff --exit-code PKGBUILD); then
|
||||
echo "Package ${PKG} has most recent version ${VER}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Update .SRCINFO
|
||||
makepkg --printsrcinfo >.SRCINFO
|
||||
|
||||
# Commit changes
|
||||
git add PKGBUILD .SRCINFO
|
||||
git commit -m "${PKG} v${VER}"
|
Loading…
Reference in a new issue