Skip to content

Instantly share code, notes, and snippets.

@ammgws
Created June 27, 2024 06:47
Show Gist options
  • Save ammgws/f98af057651854b4312173bf750fd47c to your computer and use it in GitHub Desktop.
Save ammgws/f98af057651854b4312173bf750fd47c to your computer and use it in GitHub Desktop.
pkgname=google-chrome79-for-webos
pkgver=79.0.3945.130
pkgrel=2
pkgdesc="Used for remote inspection of Chrome 79 running on older versions of WebOS on LG TVs"
arch=('x86_64')
url="https://www.google.com/chrome"
license=('custom:chrome')
depends=('alsa-lib' 'gtk3' 'libcups' 'libxss' 'libxtst' 'nss')
optdepends=('kdialog: for file dialogs in KDE'
'gnome-keyring: for storing passwords in GNOME keyring'
'kwallet: for storing passwords in KWallet'
'gtk3-print-backends: for printing'
'libunity: for download progress on KDE'
'ttf-liberation: fix fonts for some PDFs (CRBug #369991)'
'xdg-utils')
options=('!emptydirs' '!strip' '!debug')
source=("google-chrome-stable_${pkgver}_amd64.deb::https://mirror.cs.uchicago.edu/google-chrome/pool/main/g/google-chrome-stable/google-chrome-stable_${pkgver}-1_amd64.deb"
"google-chrome-stable.sh")
sha512sums=('047bf99b8d24369b4b50ba317e290913131c08a646d88d6f0c8ee5ad79bad9ae3747ee9fd6a1b7cf100dcdd3035bf45a935ac5638a8360cbe2af3114604f68e5'
'02603cf377a9857ac742c98f45a63ce5684d73e85f2cfd388250241e757503708ccef21b3184cfe1955afc4dd44681965873fbbe206f95dcbf216befc46bde07')
package() {
bsdtar -xf data.tar.xz -C "$pkgdir/"
install -m755 google-chrome-stable.sh "$pkgdir"/usr/bin/"$pkgname"
mv "$pkgdir"/opt/google/chrome "$pkgdir"/opt/"$pkgname"
rm -r "$pkgdir"/opt/google
rm -r "$pkgdir"/etc
rm -r "$pkgdir"/usr/share
}
@ammgws
Copy link
Author

ammgws commented Jun 27, 2024

google-chrome-stable.sh

#!/bin/bash

# Launch
exec /opt/google-chrome79-for-webos/google-chrome --user-data-dir=/tmp/google-chrome79-for-webos/ --no-sandbox "$@"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment