mirror of
https://github.com/luzifer-aur/google-chrome-beta.git
synced 2024-12-30 04:41:16 +00:00
Switch version search to Debian repo
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
d1f121de81
commit
3c183e7644
1 changed files with 6 additions and 4 deletions
|
@ -6,16 +6,16 @@ CHANNEL=$(awk -F '=' '/^_channel/{ print $2 }' PKGBUILD)
|
||||||
PKG="google-chrome-${CHANNEL}"
|
PKG="google-chrome-${CHANNEL}"
|
||||||
|
|
||||||
# Get latest version
|
# Get latest version
|
||||||
VER=$(curl -sL "https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz" | gzip -df |
|
VER=$(curl -sSf https://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages |
|
||||||
tr ' ' '\n' | grep -e name= -e ver= | cut -d '"' -f2 | sed 'N;s/\n/ /' |
|
grep -A1 "Package: ${PKG}" |
|
||||||
grep "${PKG}" | cut -d ' ' -f 2)
|
awk '/Version/{print $2}' |
|
||||||
|
cut -d '-' -f1)
|
||||||
|
|
||||||
# Insert latest version into PKGBUILD and update hashes
|
# Insert latest version into PKGBUILD and update hashes
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "s/^pkgver=.*/pkgver=${VER}/" \
|
-e "s/^pkgver=.*/pkgver=${VER}/" \
|
||||||
-e 's/pkgrel=.*/pkgrel=1/' \
|
-e 's/pkgrel=.*/pkgrel=1/' \
|
||||||
PKGBUILD
|
PKGBUILD
|
||||||
updpkgsums
|
|
||||||
|
|
||||||
# Check whether this changed anything
|
# Check whether this changed anything
|
||||||
if (git diff --exit-code PKGBUILD); then
|
if (git diff --exit-code PKGBUILD); then
|
||||||
|
@ -23,6 +23,8 @@ if (git diff --exit-code PKGBUILD); then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
updpkgsums
|
||||||
|
|
||||||
# Update .SRCINFO
|
# Update .SRCINFO
|
||||||
makepkg --printsrcinfo >.SRCINFO
|
makepkg --printsrcinfo >.SRCINFO
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue