Skip to content

Commit

Permalink
👍 BUMP: Bump to latest upstream version
Browse files Browse the repository at this point in the history
On branch main
- Changes to be committed:
  - modified:   .SRCINFO
  - modified:   PKGBUILD
  • Loading branch information
rossclarkartist committed Sep 2, 2022
1 parent 258dd81 commit 6ae4037
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 49 deletions.
7 changes: 5 additions & 2 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgbase = google-chrome
pkgdesc = A web browser by Google, stable)
pkgver = 99.0.4844.84
pkgver = 105.0.5195.52
pkgrel = 1
url = https://www.google.com/chrome
install = google-chrome.install
Expand All @@ -20,8 +20,11 @@ pkgbase = google-chrome
optdepends = kwallet: for storing passwords in KWallet
options = !emptydirs
options = !strip
source = https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_99.0.4844.84-1_amd64.deb
source = https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_105.0.5195.52-1_amd64.deb
source = eula_text.html
source = google-chrome-stable.sh
sha512sums = 6ae52004f53aa93262b16eb3585cbd664e7c9fd9b97381204181732d9b9c7d874430658e48e33ecd21c90da51332ac5d9ce35302bdc8ca8554a349313944c222
sha512sums = c733a940fd26329f5b68a55f7470eef1e0ea25e7d87e238082c397370cbfd5fe585b385c51d33f76fb60b702f1a0f4badfe49dfc72b9ef60dd4459b7c858e516
sha512sums = 05183afeb38436b76c577b6dca03b4b7a357e7de890c076ce0110e0a126436887872935e266b07385f71e39879a350b87fe86cccadd70e298c78ae22b2088aca

pkgname = google-chrome
96 changes: 49 additions & 47 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,78 +9,80 @@
# ToDo: Add files: Tooling
# FixMe: Namcap warnings and errors

# Maintainer: Ross Clark <archiv8@artisteducator.com>
# Contributor: Ross Clark <archiv8@artisteducator.com>
# Maintainer: Ross Clark <https://github.com/Archiv8/google-chrome/discussions>
# Contributor: Ross Clark <https://github.com/Archiv8/google-chrome/discussions>

# Check for new Linux releases in: http://googlechromereleases.blogspot.com/search/label/Stable%20updates
# or use: $ curl -s https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz | gzip -df | awk -F\" "/pkgid/{ sub(".*-","",$4); print $4": "$10 }"

pkgname=google-chrome
pkgver=99.0.4844.84
pkgver=105.0.5195.52
pkgrel=1
pkgdesc="A web browser by Google, stable)"
arch=("x86_64")
url="https://www.google.com/chrome"
license=("custom:chrome")
depends=(
"alsa-lib"
"gtk3"
"libcups"
"libxss"
"libxtst"
"nss"
"ttf-liberation"
"xdg-utils"
"alsa-lib"
"gtk3"
"libcups"
"libxss"
"libxtst"
"nss"
"ttf-liberation"
"xdg-utils"
)
optdepends=(
"pipewire: WebRTC desktop sharing under Wayland"
"kdialog: for file dialogs in KDE"
"gnome-keyring: for storing passwords in GNOME keyring"
"kwallet: for storing passwords in KWallet"
"pipewire: WebRTC desktop sharing under Wayland"
"kdialog: for file dialogs in KDE"
"gnome-keyring: for storing passwords in GNOME keyring"
"kwallet: for storing passwords in KWallet"
)
options=("!emptydirs" "!strip")
options=(
"!emptydirs"
"!strip")
install=$pkgname.install
_channel=stable
source=(
"https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-${_channel}/google-chrome-${_channel}_${pkgver}-1_amd64.deb"
"eula_text.html"
"google-chrome-$_channel.sh"
"https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-${_channel}/google-chrome-${_channel}_${pkgver}-1_amd64.deb"
"eula_text.html"
"google-chrome-$_channel.sh"
)
sha512sums=(
"925c283e4b4ebdb21c86873e23e9987cbdd6ef6b43fe006a75ddb46041c4d0c4e523a814b77c3a173f8f006c9efab84f2c18b3a22af9f05510c506248c889f70"
"c733a940fd26329f5b68a55f7470eef1e0ea25e7d87e238082c397370cbfd5fe585b385c51d33f76fb60b702f1a0f4badfe49dfc72b9ef60dd4459b7c858e516"
"05183afeb38436b76c577b6dca03b4b7a357e7de890c076ce0110e0a126436887872935e266b07385f71e39879a350b87fe86cccadd70e298c78ae22b2088aca"
"6ae52004f53aa93262b16eb3585cbd664e7c9fd9b97381204181732d9b9c7d874430658e48e33ecd21c90da51332ac5d9ce35302bdc8ca8554a349313944c222"
"c733a940fd26329f5b68a55f7470eef1e0ea25e7d87e238082c397370cbfd5fe585b385c51d33f76fb60b702f1a0f4badfe49dfc72b9ef60dd4459b7c858e516"
"05183afeb38436b76c577b6dca03b4b7a357e7de890c076ce0110e0a126436887872935e266b07385f71e39879a350b87fe86cccadd70e298c78ae22b2088aca"
)

package() {
echo " -> Extracting the data.tar.xz..."
bsdtar -xf data.tar.xz -C "$pkgdir/"
echo " -> Extracting the data.tar.xz..."
bsdtar -xf data.tar.xz -C "$pkgdir/"

echo " -> Moving stuff in place..."
# Launcher
install -m755 google-chrome-$_channel.sh "$pkgdir"/usr/bin/google-chrome-$_channel
echo " -> Moving stuff in place..."
# Launcher
install -m755 google-chrome-$_channel.sh "$pkgdir"/usr/bin/google-chrome-$_channel

# Icons
for i in 16x16 24x24 32x32 48x48 64x64 128x128 256x256; do
install -Dm644 "$pkgdir"/opt/google/chrome/product_logo_${i/x*/}.png \
"$pkgdir"/usr/share/icons/hicolor/$i/apps/google-chrome.png
done
# Icons
for i in 16x16 24x24 32x32 48x48 64x64 128x128 256x256; do
install -Dm644 "$pkgdir"/opt/google/chrome/product_logo_${i/x*/}.png \
"$pkgdir"/usr/share/icons/hicolor/$i/apps/google-chrome.png
done

# License
install -Dm644 eula_text.html "$pkgdir"/usr/share/licenses/google-chrome/eula_text.html
install -Dm644 "$pkgdir"/opt/google/chrome/WidevineCdm/LICENSE \
"$pkgdir"/usr/share/licenses/google-chrome-$_channel/WidevineCdm-LICENSE.txt
# License
install -Dm644 eula_text.html "$pkgdir"/usr/share/licenses/google-chrome/eula_text.html
install -Dm644 "$pkgdir"/opt/google/chrome/WidevineCdm/LICENSE \
"$pkgdir"/usr/share/licenses/google-chrome-$_channel/WidevineCdm-LICENSE.txt

echo " -> Fixing Chrome desktop entry..."
sed -i \
-e "/Exec=/i\StartupWMClass=Google-chrome" \
-e "s/x-scheme-handler\/ftp;\?//g" \
"$pkgdir"/usr/share/applications/google-chrome.desktop
echo " -> Fixing Chrome desktop entry..."
sed -i \
-e "/Exec=/i\StartupWMClass=Google-chrome" \
-e "s/x-scheme-handler\/ftp;\?//g" \
"$pkgdir"/usr/share/applications/google-chrome.desktop

echo " -> Removing Debian Cron job, duplicate product logos and menu directory..."
rm -r \
"$pkgdir"/etc/cron.daily/ \
"$pkgdir"/opt/google/chrome/cron/ \
"$pkgdir"/opt/google/chrome/product_logo_*.{png,xpm} \
"$pkgdir"/usr/share/menu/
echo " -> Removing Debian Cron job, duplicate product logos and menu directory..."
rm -r \
"$pkgdir"/etc/cron.daily/ \
"$pkgdir"/opt/google/chrome/cron/ \
"$pkgdir"/opt/google/chrome/product_logo_*.{png,xpm} \
"$pkgdir"/usr/share/menu/
}

0 comments on commit 6ae4037

Please sign in to comment.