mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* google_chrome -> 146.0.7680.177 in updater-google_chrome-146.0.7680.177 * updater-google_chrome-146.0.7680.177: Package File Update Run on linux/amd64 container. --------- Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
56 lines
1.8 KiB
Ruby
56 lines
1.8 KiB
Ruby
require 'package'
|
|
|
|
class Google_chrome < Package
|
|
description 'Google Chrome is a fast, easy to use, and secure web browser.'
|
|
homepage 'https://www.google.com/chrome/'
|
|
version '146.0.7680.177'
|
|
license 'google-chrome'
|
|
compatibility 'x86_64'
|
|
source_url "https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_#{version}-1_amd64.deb"
|
|
source_sha256 '4dbd78d88a1e69a6036ba8e8adb99fca808790e23b2ea92d8610494ad7f57328'
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
|
|
depends_on 'alsa_lib' => :executable
|
|
depends_on 'at_spi2_core' => :executable
|
|
depends_on 'cairo' => :executable
|
|
depends_on 'cras' => :logical
|
|
depends_on 'cups' => :executable
|
|
depends_on 'dbus' => :executable
|
|
depends_on 'eudev' => :executable
|
|
depends_on 'expat' => :executable
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glib' => :executable
|
|
depends_on 'glibc' # R
|
|
depends_on 'harfbuzz' => :executable
|
|
depends_on 'libx11' # R
|
|
depends_on 'libxcb' # R
|
|
depends_on 'libxcomposite' => :executable
|
|
depends_on 'libxdamage' => :executable
|
|
depends_on 'libxext' # R
|
|
depends_on 'libxfixes' => :executable
|
|
depends_on 'libxkbcommon' => :executable
|
|
depends_on 'libxrandr' => :executable
|
|
depends_on 'mesa' => :executable
|
|
depends_on 'nss' => :executable
|
|
depends_on 'pango' => :executable
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
|
|
FileUtils.mv 'usr/share', CREW_DEST_PREFIX
|
|
FileUtils.mv 'opt/google/chrome', "#{CREW_DEST_PREFIX}/share"
|
|
|
|
FileUtils.ln_s "#{CREW_PREFIX}/share/chrome/google-chrome", "#{CREW_DEST_PREFIX}/bin/google-chrome"
|
|
end
|
|
|
|
def self.postinstall
|
|
ConvenienceFunctions.set_default_browser('Chrome', 'google-chrome')
|
|
end
|
|
|
|
def self.preremove
|
|
ConvenienceFunctions.unset_default_browser('Chrome', 'google-chrome')
|
|
end
|
|
end
|